Skip to content

Floating Point Errors fix

Compare
Choose a tag to compare
@TabulateJarl8 TabulateJarl8 released this 02 Jul 02:01
· 72 commits to master since this release

Made a decorator that attempts to fix floating point arithmetic errors within a function. On by default, but can be disabled with the --no-fix-floating-point flag. May still be unstable, as this feature hasn't been fully tested yet. Will fix any errors that come up

Example:

# Without fix:
print(1.1 * 3) # 3.3000000000000003

# With fix:
print(1.1 * 3) # 3.3