Source File
pow10.go
Belonging Package
math
package math
var pow10postab32 = [...]float64{
1e00, 1e32, 1e64, 1e96, 1e128, 1e160, 1e192, 1e224, 1e256, 1e288,
}
var pow10negtab32 = [...]float64{
1e-00, 1e-32, 1e-64, 1e-96, 1e-128, 1e-160, 1e-192, 1e-224, 1e-256, 1e-288, 1e-320,
}
func ( int) float64 {
if 0 <= && <= 308 {
return pow10postab32[uint()/32] * pow10tab[uint()%32]
}
if -323 <= && <= 0 {
return pow10negtab32[uint(-)/32] / pow10tab[uint(-)%32]
}
if > 0 {
return Inf(1)
}
return 0
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |