mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Specify %m and %M as verbs for integer formatting
This commit is contained in:
+2
-2
@@ -29,6 +29,8 @@ Integer:
|
|||||||
%x base 16, with lower-case letters for a-f
|
%x base 16, with lower-case letters for a-f
|
||||||
%X base 16, with upper-case letters for A-F
|
%X base 16, with upper-case letters for A-F
|
||||||
%U Unicode format: U+1234; same as "U+%04X"
|
%U Unicode format: U+1234; same as "U+%04X"
|
||||||
|
%m number of bytes in the best unit of measurement, e.g. 123.45mib
|
||||||
|
%M number of bytes in the best unit of measurement, e.g. 123.45MiB
|
||||||
Floating-point, complex numbers, and quaternions:
|
Floating-point, complex numbers, and quaternions:
|
||||||
%e scientific notation, e.g. -1.23456e+78
|
%e scientific notation, e.g. -1.23456e+78
|
||||||
%E scientific notation, e.g. -1.23456E+78
|
%E scientific notation, e.g. -1.23456E+78
|
||||||
@@ -38,8 +40,6 @@ Floating-point, complex numbers, and quaternions:
|
|||||||
%G synonym for %g
|
%G synonym for %g
|
||||||
%h hexadecimal (lower-case) representation with 0h prefix (0h01234abcd)
|
%h hexadecimal (lower-case) representation with 0h prefix (0h01234abcd)
|
||||||
%H hexadecimal (upper-case) representation with 0H prefix (0h01234ABCD)
|
%H hexadecimal (upper-case) representation with 0H prefix (0h01234ABCD)
|
||||||
%m number of bytes in the best unit of measurement, e.g. 123.45mib
|
|
||||||
%M number of bytes in the best unit of measurement, e.g. 123.45MiB
|
|
||||||
String and slice of bytes
|
String and slice of bytes
|
||||||
%s the uninterpreted bytes of the string or slice
|
%s the uninterpreted bytes of the string or slice
|
||||||
%q a double-quoted string safely escaped with Odin syntax
|
%q a double-quoted string safely escaped with Odin syntax
|
||||||
|
|||||||
Reference in New Issue
Block a user