diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-07-11 15:38:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-07-11 15:38:42 -0400 |
| commit | a51d48201b5245dc2cc2bfb00e0ac8e7b52203d9 (patch) | |
| tree | 4fd950f4d9c6611aef3a48712857b004a7843c3c /src/stdlib/print.h | |
| parent | 4c84fbdee185a63e60bc93798c0fc149bcd945fd (diff) | |
Use _Decimal64 instead of mpdecimal
Diffstat (limited to 'src/stdlib/print.h')
| -rw-r--r-- | src/stdlib/print.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stdlib/print.h b/src/stdlib/print.h index 5ef5b6ed..5a4a56f2 100644 --- a/src/stdlib/print.h +++ b/src/stdlib/print.h @@ -83,6 +83,8 @@ int _print_double(FILE *f, double x); int _print_hex(FILE *f, hex_format_t hex); int _print_hex_double(FILE *f, hex_double_t hex); int _print_oct(FILE *f, oct_format_t oct); +int _print_decimal32(FILE *f, _Decimal32 d); +int _print_decimal64(FILE *f, _Decimal64 d); PRINT_FN _print_float(FILE *f, float x) { return _print_double(f, (double)x); } PRINT_FN _print_pointer(FILE *f, void *p) { return _print_hex(f, hex((uint64_t)p)); } PRINT_FN _print_bool(FILE *f, bool b) { return fputs(b ? "yes" : "no", f); } @@ -116,6 +118,8 @@ extern int Int$print(FILE *f, Int_t i); uint8_t: _print_uint, \ float: _print_float, \ double: _print_double, \ + _Decimal32: _print_decimal32, \ + _Decimal64: _print_decimal64, \ hex_format_t: _print_hex, \ hex_double_t: _print_hex_double, \ oct_format_t: _print_oct, \ |
