Could dec(expression)
replace all number literals in the expression with decimals?
#764
Labels
dec(expression)
replace all number literals in the expression with decimals?
#764
At the moment,
dec(expression)
evaluatesexpression
, then converts it to a decimal. This means that precision is lost before the conversion, when it looks like it shouldn't be.If
dec
was a lazy operator, it could rewrite all the number literals in the expression to decimals, forcing calculations to happen in decimals instead of numbers, potentially saving a lot of precision.The text was updated successfully, but these errors were encountered: