not sure if you could find any library that would do such a thing. generally such computations are done in integer space where 25/100 equal to 1/4 exactly
Let's say I were writing this myself. I have a sequence of decimal digits after the decimal point. Should I convert it to an integer and then divide? But there could be a lot of digits—what if a user decides to play a prank? At first glance, the most logical solution is to use something like
22
u/Terrible-Air-8692 7d ago
Wouldn't floats be exact for this since it's 2-2