Returning "0" in divide() is ignoring precision #56
themastermindnktp
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In file
src/divide.tsline 17, functiondivide(dividend, divisor, precision), your code instantly returns"0"without processingprecision. This is quite inconsistent. For example:divide("10", "2", 3) -> "5.000"whiledivide("0", "2", 3") -> "0".Beta Was this translation helpful? Give feedback.
All reactions