2 ms·
We introduce rational number as native Go+ types. We use -r suffix as a rational constant. For example, (1r << 200) means a big int whose value is equal to 2200
by bumbledraven 6y ago
We introduce rational number as native Go+ types. We use -r suffix as a rational constant. For example, (1r << 200) means a big int whose value is equal to 2200. And 4/5r means the rational constant 4/5.
Nice! Coming from Python, I miss being able to use the normal arithmetic operators on bigints in Go.