diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-19 13:41:52 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-19 13:41:52 -0500 |
| commit | 2c904ff1737e34008f7a6c5d4b072d87a45a3fbc (patch) | |
| tree | ac4c430677042a7ea92b92be5e5afa6e5a4ef27d /stdlib/nums.c | |
| parent | 4720ca7a5f3ad4bf2a04a6d28d671f03162149a9 (diff) | |
Go back to stringifying integers/num32s/bytes without the type
constructor.
Diffstat (limited to 'stdlib/nums.c')
| -rw-r--r-- | stdlib/nums.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/nums.c b/stdlib/nums.c index 8a210d7e..a9cb0a6d 100644 --- a/stdlib/nums.c +++ b/stdlib/nums.c @@ -93,7 +93,7 @@ public const TypeInfo_t Num$info = { public PUREFUNC Text_t Num32$as_text(const float *f, bool colorize, const TypeInfo_t *type) { (void)type; if (!f) return Text("Num32"); - return Text$format(colorize ? "\x1b[36mNum32(\x1b[35m%.8g\x1b[33;2m\x1b[m)" : "Num32(%.8g)", (double)*f); + return Text$format(colorize ? "\x1b[35m%.8g\x1b[33;2m\x1b[m" : "%.8g", (double)*f); } public PUREFUNC int32_t Num32$compare(const float *x, const float *y, const TypeInfo_t *type) { |
