Skip to content Skip to sidebar Skip to footer
Showing posts with the label Floating Accuracy

Is There A Way To Return A Fully Reduced Ratio When Calling .as_integer_ratio()?

I noticed something strange when calling .as_integer_ratio() on some floats. for example: (2.2).as_… Read more Is There A Way To Return A Fully Reduced Ratio When Calling .as_integer_ratio()?

Python Representation Of Floating Point Numbers

I spent an hour today trying to figure out why return abs(val-desired) Solution 1: Yes, this can b… Read more Python Representation Of Floating Point Numbers

Python Representation Of Floating Point Numbers

I spent an hour today trying to figure out why return abs(val-desired) Solution 1: Yes, this ca… Read more Python Representation Of Floating Point Numbers