micropython/tools
Dan Ellis f9cbe6bc47 py/formatfloat: Format all whole-number floats exactly.
Formerly, py/formatfloat would print whole numbers inaccurately with
nonzero digits beyond the decimal place.  This resulted from its strategy
of successive scaling of the argument by 0.1 which cannot be exactly
represented in floating point.  The change in this commit avoids scaling
until the value is smaller than 1, so all whole numbers print with zero
fractional part.

Fixes issue #4212.

Signed-off-by: Dan Ellis dan.ellis@gmail.com
2022-07-26 22:23:47 +10:00
..
autobuild tools/autobuild: Add nrf port to autobuild scripts. 2022-07-13 16:19:22 +10:00
mpremote tools/mpremote: Don't be verbose when using cat command. 2022-07-08 22:28:26 +10:00
.gitattributes
.gitignore
cc1
ci.sh tools/ci.sh: Drop ppa requirement for code formatting CI. 2022-06-17 16:56:41 +10:00
codeformat.py tools/codeformat.py: Include more ports .c/.h files in formatting. 2022-04-20 16:02:11 +10:00
codestats.sh
dfu.py
file2h.py
gen-changelog.sh
gen-cpydiff.py
gendoc.py
insert-usb-ids.py
makemanifest.py
metrics.py tools/metrics.py: Add mimxrt and renesas-ra to list of available ports. 2022-06-17 14:57:58 +10:00
mpy-tool.py tools/mpy-tool.py: Improve generated frozen identifiers. 2022-06-07 16:55:18 +10:00
mpy_bin2res.py
mpy_cross_all.py
mpy_ld.py tools/mpy_ld.py: Support GOT entries that reference inside mp_fun_table. 2022-06-10 16:42:43 +10:00
pyboard.py tools/pyboard.py: Add verbose option to filesystem_command. 2022-07-08 22:26:41 +10:00
pydfu.py
tinytest-codegen.py py/formatfloat: Format all whole-number floats exactly. 2022-07-26 22:23:47 +10:00
uf2conv.py
uf2families.json
uncrustify.cfg tools/uncrustify: Make sure a space exists after a comma. 2022-05-05 13:30:40 +10:00
upip.py
upip_utarfile.py
verifygitlog.py