- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ryuFtoaFixed64 (0.11 sec)
-
src/strconv/ftoaryu.go
// Proceed to the requested number of digits formatDecimal(d, uint64(di), !d0, roundUp, prec) // Adjust exponent d.dp -= q } // ryuFtoaFixed64 formats mant*(2^exp) with prec decimal digits. func ryuFtoaFixed64(d *decimalSlice, mant uint64, exp int, prec int) { if prec > 18 { panic("ryuFtoaFixed64 called with prec > 18") } // Zero input. if mant == 0 { d.nd, d.dp = 0, 0 return } // Renormalize to a 55-bit mantissa.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 00:28:56 UTC 2022 - 15.7K bytes - Viewed (0) -
src/strconv/ftoa.go
var buf [24]byte if bitSize == 32 && digits <= 9 { digs.d = buf[:] ryuFtoaFixed32(&digs, uint32(mant), exp-int(flt.mantbits), digits) ok = true } else if digits <= 18 { digs.d = buf[:] ryuFtoaFixed64(&digs, mant, exp-int(flt.mantbits), digits) ok = true } } if !ok { return bigFtoa(dst, prec, fmt, neg, mant, exp, flt) } return formatDigits(dst, shortest, neg, digs, prec, fmt) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 13.9K bytes - Viewed (0)