Fix formatting of very long fixed-point numbers

This commit is contained in:
Rangi42
2025-09-04 12:42:54 -04:00
parent bdc885bd69
commit 891e6f98df
3 changed files with 30 additions and 37 deletions

View File

@@ -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)

View File

@@ -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