Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Python • Re: Python Floating point maths, correcting?

$
0
0
Decimal is very slow compared to binary floating point, and a Decimal() with default precision is 5× larger than a Python float.
While I appreciate the information, speed is not a factor in my usage case but accuracy is, so it seems like 'Decimal' will do what I need it to (even though, and I heed your warning, the results from 'Decimal' may not always be as accurate as we might wish).

Statistics: Posted by SiriusHardware — Sun Jan 04, 2026 7:45 pm



Viewing all articles
Browse latest Browse all 8026

Trending Articles