mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix formatting of very long fixed-point numbers
This commit is contained in:
@@ -6,3 +6,5 @@ ENDM
|
||||
test $8000_0000 ; INT32_MIN
|
||||
test $0000_0000 ; UINT32_MIN
|
||||
test $ffff_ffff ; UINT32_MAX
|
||||
|
||||
println strfmt("%#.255q1f", $7fff_ffff)
|
||||
|
||||
@@ -2,3 +2,4 @@ $7fffffff = &17777777777 = %01111111111111111111111111111111 = 2147483647U = +21
|
||||
$80000000 = &20000000000 = %10000000000000000000000000000000 = 2147483648U = -2147483648 = -32768.0000000000000000
|
||||
$00000000 = &00000000000 = %00000000000000000000000000000000 = 0U = +0 = +0.0000000000000000
|
||||
$ffffffff = &37777777777 = %11111111111111111111111111111111 = 4294967295U = -1 = -0.0000152587890625
|
||||
1073741823.500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000q1
|
||||
|
||||
Reference in New Issue
Block a user