| ... | @@ -1009,8 +1009,10 @@ pub fn formatBuf( | ... | @@ -1009,8 +1009,10 @@ pub fn formatBuf( |
| 1009 | } | 1009 | } |
| 1010 | | 1010 | |
| 1011 | /// Print a float in scientific notation to the specified precision. Null uses full precision. | 1011 | /// Print a float in scientific notation to the specified precision. Null uses full precision. |
| 1012 | /// It should be the case that every full precision, printed value can be re-parsed back to the | 1012 | /// For floats with less than 64 bits, it should be the case that every full precision, printed |
| 1013 | /// same type unambiguously. | 1013 | /// value can be re-parsed back to the same type unambiguously. |
| | 1014 | /// |
| | 1015 | /// Floats with more than 64 are currently rounded, see https://github.com/ziglang/zig/issues/1181 |
| 1014 | pub fn formatFloatScientific( | 1016 | pub fn formatFloatScientific( |
| 1015 | value: anytype, | 1017 | value: anytype, |
| 1016 | options: FormatOptions, | 1018 | options: FormatOptions, |
| ... | @@ -1213,6 +1215,8 @@ pub fn formatFloatHexadecimal( | ... | @@ -1213,6 +1215,8 @@ pub fn formatFloatHexadecimal( |
| 1213 | | 1215 | |
| 1214 | /// Print a float of the format x.yyyyy where the number of y is specified by the precision argument. | 1216 | /// Print a float of the format x.yyyyy where the number of y is specified by the precision argument. |
| 1215 | /// By default floats are printed at full precision (no rounding). | 1217 | /// By default floats are printed at full precision (no rounding). |
| | 1218 | /// |
| | 1219 | /// Floats with more than 64 bits are not yet supported, see https://github.com/ziglang/zig/issues/1181 |
| 1216 | pub fn formatFloatDecimal( | 1220 | pub fn formatFloatDecimal( |
| 1217 | value: anytype, | 1221 | value: anytype, |
| 1218 | options: FormatOptions, | 1222 | options: FormatOptions, |