circuitpython/tools
Dan Ellis 9b5e00fcc5 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-08-09 13:43:47 -04:00
..
adabot@f879b24c5f update tools/adabot submodule 2021-08-11 23:14:58 -04:00
autobuild Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
bitmap_font@62dd78abdd Hook up the terminal based on the first display. 2019-01-31 11:42:14 -08:00
fonts Fix number of chars in default font to make it valid bdf. 2021-08-15 14:31:58 -05:00
huffman@27b1bba761 Compress all translated strings with Huffman coding. 2018-08-16 17:40:57 -07:00
python-semver@2001c62d1a merge from 2.2.0 + fix up board defs 2018-01-02 21:25:41 -05:00
Tecate-bitmap-fonts@6f52a7ca08 Begin font parsing and packing for terminal 2019-01-31 11:42:13 -08:00
uf2@1421ca7fe7 Updated to latest uf2 commit where file permissions are corrected. 2022-01-07 10:04:11 +01:00
usb_descriptor@2eaa6114b2 wip: revert usb_descriptor changes; use raw descriptors instead 2021-04-19 23:24:18 -04:00
.gitattributes micropython-upip: Mark as binary file and re-commit. 2015-06-06 23:09:23 +03:00
.gitignore tools: check-in errordeveloper/tinytest@eb2dbc858f 2014-05-08 01:41:21 +03:00
analyze_heap_dump.py run code formatting script 2021-03-15 19:27:36 +05:30
analyze_mpy.py run code formatting script 2021-03-15 19:27:36 +05:30
build_board_info.py move get_board_mapping to shared_binding_matrix because it just uses a list from there 2022-07-26 18:15:59 +02:00
build_memory_info.py Added execution permission for board and memory info python scripts 2022-01-07 09:46:16 +01:00
build_release_files.py list extensions instead of macros names ("bin,uf2" not BIN_UF2) 2022-07-26 18:15:59 +02:00
build-stm-latest.sh tools: Remove obsolete build-stm-latest.sh script. 2021-06-23 16:59:20 +10:00
cc1 tools: Add C middle-processor to make builtin tables proper hash tables. 2015-12-31 00:24:33 +00:00
chart_code_size.py update to py tests and scripts due to black 22.1.0 2022-01-29 17:14:01 -05:00
check_translations.py Add license to some obvious files. 2020-07-06 19:16:25 +01:00
ci_check_duplicate_usb_vid_pid.py make translate and pre-commit formatting fixes 2022-07-08 16:53:53 -04:00
ci_fetch_deps.py Pass check=False for an expected-fail command 2022-07-14 15:16:28 -05:00
ci_set_matrix.py Improve build matrix computation 2022-07-26 15:33:13 -07:00
codeformat.py Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
codestats.sh Add license to some obvious files. 2020-07-06 19:16:25 +01:00
convert_release_notes.py Fix and revise convert-release-notes.py 2022-02-11 16:21:20 -05:00
cpboard.py s/Circuit Python/CircuitPython/g 2021-05-06 16:22:35 +03:00
describe use --long for describe in setup.py-stubs 2022-02-18 21:22:02 -05:00
dfu.py Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
diff_nm_sizes.py Shrink bluemicro833 build 2022-03-11 16:04:12 -08:00
extract_pyi.py Merge remote-tracking branch 'adafruit/7.2.x' into merge_7.2.2 2022-03-15 13:56:11 -07:00
file2h.py codeformat 2021-04-19 22:22:44 -07:00
fixup_translations.py run code formatting script 2021-03-15 19:27:36 +05:30
fwsizes.py add tool to parse out firmware sizes for comparison 2021-07-10 19:11:47 -05:00
gc_activity_between_collects.py run code formatting script 2021-03-15 19:27:36 +05:30
gc_activity.html Add heap analysis scripts based on GDB breakpoint logs. 2016-11-23 17:31:53 -08:00
gc_activity.md Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
gc_activity.py run code formatting script 2021-03-15 19:27:36 +05:30
gen_display_resources.py Fix builds with displayio but not terminalio 2022-08-04 16:34:25 -07:00
gen_ld_files.py run code formatting script 2021-03-15 19:27:36 +05:30
gen_nvm_devices.py Switch devices.h to nvm.toml data 2021-03-25 09:57:18 -07:00
gen_web_workflow_static.py add back /edit/ handler and specify ES6 quote chars for jsmin 2022-07-15 19:49:03 -05:00
gen-changelog.sh Add license to some obvious files. 2020-07-06 19:16:25 +01:00
gendoc.py codeformat 2021-04-19 22:22:44 -07:00
git-checkout-latest-tag.sh Add license to some obvious files. 2020-07-06 19:16:25 +01:00
insert-usb-ids.py Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
join_bins.py Add license to some obvious files. 2020-07-06 19:16:25 +01:00
make-frozen.py tools/makemanifest.py: Merge make-frozen.py. 2021-12-17 23:54:05 +11:00
makemanifest.py py: Only search frozen modules when '.frozen' is found in sys.path. 2021-12-18 00:01:59 +11:00
merge_micropython.py Don't remove all micropython examples, we want natmod and usercmodule 2022-02-15 10:14:47 -06:00
metrics.py tools/metrics.py: Add rp2 port to table of ports that can be built. 2021-04-20 21:39:53 +10:00
mpconfig_category_reader.py run code formatting script 2021-03-15 19:27:36 +05:30
mpy_bin2res.py Add license to some obvious files. 2020-07-06 19:16:25 +01:00
mpy_cross_all.py Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
mpy_ld.py Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
mpy-tool.py Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
output_gc_until_repl.txt Update gc tracking instructions and gdb commands. 2020-02-11 17:05:43 -08:00
preprocess_frozen_modules.py Don't freeze utils directories 2021-12-29 11:56:30 +11:00
print_status.py run code formatting script 2021-03-15 19:27:36 +05:30
pyboard.py Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
pydfu.py all: Update Python formatting to latest Black version 21.12b0. 2021-12-09 12:09:40 +11:00
safe_mode_finder.py Add ability to disable BLE workflow 2021-08-02 18:37:19 -07:00
test-stubs.sh add circuitpython_typing. to some annotations; generalize extract_pyi.pi 2022-02-28 21:27:24 -05:00
tinytest-codegen.py py/formatfloat: Format all whole-number floats exactly. 2022-08-09 13:43:47 -04:00
uncrustify.cfg tools/uncrustify: Force 1 newline at end of file. 2021-08-31 13:14:45 +10:00
upip_utarfile.py codeformat 2021-04-19 22:22:44 -07:00
upip.py Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
verifygitlog.py tools/verifygitlog.py: Show required format regexp in error message. 2021-02-21 15:55:44 +11:00