diff options
| author | Jacob S. Gordon | 2025-12-21 23:39:42 -0800 |
|---|---|---|
| committer | Paul Eggert | 2025-12-22 00:15:09 -0800 |
| commit | cff022f0c3632c2522e568bd5e96841c1a0271ef (patch) | |
| tree | 69f6254f17aa949d7c4ccd3c6b444f4866873400 /admin/notes/java | |
| parent | 1f7c804ab17a0a5b57cc3b32d44dc340caf92b0e (diff) | |
| download | emacs-cff022f0c3632c2522e568bd5e96841c1a0271ef.tar.gz emacs-cff022f0c3632c2522e568bd5e96841c1a0271ef.zip | |
Add binary format specifications '%b' and '%B'
These produce the binary representation of a number.
'%#b' and '%#B' prefix with '0b' and '0B', respectively.
(bug#79990)
* etc/NEWS: Announce change.
* doc/lispref/strings.texi (Formatting Strings): Describe new format
specs and add to comment on reconstructing the value with 'read'.
* src/editfns.c (format): Update doc string.
(styled_format): Add support for '%b' and '%B'. To remain
portable, avoid use of 'sprintf' by converting by hand.
* test/src/editfns-tests.el (format-binary-zero, format-binary-floats)
(format-binary-nonzero-integers): Add tests.
(read-large-integer): Add binary test cases.
Co-authored-by: Paul Eggert <eggert@cs.ucla.edu>
Diffstat (limited to 'admin/notes/java')
0 files changed, 0 insertions, 0 deletions