Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for roundShortest (0.17 sec)

  1. src/strconv/ftoa.go

    		}
    		return fmtF(dst, neg, digs, max(prec-digs.dp, 0))
    	}
    
    	// unknown format
    	return append(dst, '%', fmt)
    }
    
    // roundShortest rounds d (= mant * 2^exp) to the shortest number of digits
    // that will let the original floating point value be precisely reconstructed.
    func roundShortest(d *decimal, mant uint64, exp int, flt *floatInfo) {
    	// If mantissa is zero, the number is zero; stop now.
    	if mant == 0 {
    		d.nd = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top