← index #15258PR #15259
Duplicate · high · value 4.345
QUERY · ISSUE

docs: Document limited numerical precision

openby tdunningopened 2024-06-11updated 2025-03-03
docs

Documentation URL

No response

Description

Python normally uses double precision for all (floating point operations)[https://docs.python.org/3/library/numbers.html#numbers.Real]. MicroPython, depending on the platform, usually does not. This leads to surprises and errors, occasionally quite serious.

Unfortunately, this doesn't seem to be documented anywhere except in discussion groups.

I will create a pull request which attempts to deal with this lack.

Code of Conduct

Yes, I agree

CANDIDATE · PULL REQUEST

Document limited numerical precision

openby tdunningopened 2024-06-11updated 2024-06-26
docs

Added limited doc changes to alert users about the difference in numerical precision relative to standard Python.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied