- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for AppendFloat (0.05 sec)
-
internal/s3select/json/record.go
// and exponents themselves are not padded to two digits. abs := math.Abs(f) fmt := byte('f') if abs != 0 { if abs < 1e-6 || abs >= 1e21 { fmt = 'e' } } dst = strconv.AppendFloat(dst, f, fmt, -1, 64) if fmt == 'e' { // clean up e-09 to e-9 n := len(dst) if n >= 4 && dst[n-4] == 'e' && dst[n-3] == '-' && dst[n-2] == '0' { dst[n-2] = dst[n-1] dst = dst[:n-1] } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 5.3K bytes - Viewed (0)