Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AppendFloat (0.36 sec)

  1. 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]
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
Back to top