Closed thecaligarmo closed 2 months ago
@thecaligarmo the divide method takes a second parameter that specifies the maximum places of desired precision. The default value is 8, but can be set to any length.
You can use it as such :one.divide(two, 10000000).divide(three, 10000000)
Describe the bug Division is returning 0 for very small numbers
To Reproduce The following returns a value of 0, when it shouldn't:
Expected behavior This should give me a more precise decimal. In particular, it would be nice to have at least 4 (non-zero) values in the form of a.xyz E -1000000 or something like that. Or, allow some way to alter the precision when doing division with very small numbers.
Additional context No additional context.