mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
math: s/MinFloat/SmallestNonzeroFloat/
R=r, gri CC=golang-dev https://golang.org/cl/3547042
This commit is contained in:
parent
e454af4d64
commit
9282a768cf
2 changed files with 7 additions and 7 deletions
|
|
@ -25,13 +25,13 @@ const (
|
|||
|
||||
// Floating-point limit values.
|
||||
// Max is the largest finite value representable by the type.
|
||||
// Min is the smallest nonzero value representable by the type.
|
||||
// SmallestNonzero is the smallest positive, non-zero value representable by the type.
|
||||
const (
|
||||
MaxFloat32 = 3.40282346638528859811704183484516925440e+38 /* 2**127 * (2**24 - 1) / 2**23 */
|
||||
MinFloat32 = 1.401298464324817070923729583289916131280e-45 /* 1 / 2**(127 - 1 + 23) */
|
||||
MaxFloat32 = 3.40282346638528859811704183484516925440e+38 /* 2**127 * (2**24 - 1) / 2**23 */
|
||||
SmallestNonzeroFloat32 = 1.401298464324817070923729583289916131280e-45 /* 1 / 2**(127 - 1 + 23) */
|
||||
|
||||
MaxFloat64 = 1.797693134862315708145274237317043567981e+308 /* 2**1023 * (2**53 - 1) / 2**52 */
|
||||
MinFloat64 = 4.940656458412465441765687928682213723651e-324 /* 1 / 2**(1023 - 1 + 52) */
|
||||
MaxFloat64 = 1.797693134862315708145274237317043567981e+308 /* 2**1023 * (2**53 - 1) / 2**52 */
|
||||
SmallestNonzeroFloat64 = 4.940656458412465441765687928682213723651e-324 /* 1 / 2**(1023 - 1 + 52) */
|
||||
)
|
||||
|
||||
// Integer limit values.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue