Open qxsck opened 2 weeks ago
Why does 1/3*3 equal 0.9999999999... rather than 1?
Why does 1/3*3 equal 0.9999999999... rather than 1?
Because division only has 100 digits of decimal precision.
Seems a little similar to BigInts, perhaps consider merging with that extension instead?
为什么 1/3*3 等于 0.9999999999...而不是 1?
maybe i can add round?
I suggest the extension name to be "precise numbers" since "Big Number" is commonly referred as number greater than 1.79e308
I suggest the extension name to be "precise numbers" since "Big Number" is commonly referred as number greater than 1.79e308
Big Number is relative to BigInt, one is an integer and the other is a number that includes decimals
Why does 1/3*3 equal 0.9999999999... rather than 1?
some new blocks: set precision
math including abs,ceil,floor,trunc,max,min,round,random
High precision operation, support decimals.