Closed piotrknapik closed 3 years ago
Found this issue sometimes leading to "[Exception] Division by zero.".
Test is covering the example of such behavior: $f = new Fraction(0.14) gives 5468750000000001 / 39062500000000000 (instead of 5/70)
That's a nice catch! Float behavior in PHP won't stop to amaze me :-)
Thank you very much!
@uestla happy to help. Could you release 1.0.6 with the fix?
Released :-) Thanks again!
Found this issue sometimes leading to "[Exception] Division by zero.".
Test is covering the example of such behavior: $f = new Fraction(0.14) gives 5468750000000001 / 39062500000000000 (instead of 5/70)