mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-27 05:22:07 +00:00
Improve string/interpolation formatting (#1491)
- The '#' component for type 's' now escapes the string characters - The '#' component for type 'f' now prints a precision suffix - The new 'q' component specifies a precision value
This commit is contained in:
@@ -4,5 +4,6 @@
|
||||
`16.12`: 16.119995 -> $00101eb8
|
||||
`6.283185`: 6.283188 -> $0006487f
|
||||
32% of 20 = 6.40015 (~6.40) (~~6)
|
||||
0.00488q16 1.25000q16 320.00000q16
|
||||
Q8 $140 Q16 $14000 Q24 $1400000
|
||||
$14000
|
||||
1.25000
|
||||
|
||||
Reference in New Issue
Block a user