.5 * 2 comes out as 10
fix is
var fp_rx = regexp.MustCompile(([0-9]*\.?[0-9]+))
I believe.
(and add a test like):
{".5 * 2", big.NewRat(1, 1), true}, // no leading zero
tried to submit, but I clearly dont know how to use github yet...so submitting as issue.
-s
.5 * 2 comes out as 10 fix is var fp_rx = regexp.MustCompile(
([0-9]*\.?[0-9]+)
)I believe. (and add a test like): {".5 * 2", big.NewRat(1, 1), true}, // no leading zero
tried to submit, but I clearly dont know how to use github yet...so submitting as issue. -s