mirror of
https://github.com/golang/go
synced 2024-11-26 07:47:57 -07:00
constants for floating point limits
R=rsc DELTA=5 (5 added, 0 deleted, 0 changed) OCL=32283 CL=32287
This commit is contained in:
parent
d6f89c69c4
commit
326de9ca97
@ -21,6 +21,11 @@ const (
|
|||||||
Log2E = 1/Ln2;
|
Log2E = 1/Ln2;
|
||||||
Ln10 = 2.30258509299404568401799145468436420760110148862877297603332790; // A002392
|
Ln10 = 2.30258509299404568401799145468436420760110148862877297603332790; // A002392
|
||||||
Log10E = 1/Ln10;
|
Log10E = 1/Ln10;
|
||||||
|
|
||||||
|
MaxFloat32 = 3.40282346638528860e+38;
|
||||||
|
MinFloat32 = 1.40129846432481707e-45;
|
||||||
|
MaxFloat64 = 1.7976931348623157e+308;
|
||||||
|
MinFloat64 = 5.0e-324;
|
||||||
)
|
)
|
||||||
|
|
||||||
// BUG(rsc): The manual should define the special cases for all of these functions.
|
// BUG(rsc): The manual should define the special cases for all of these functions.
|
||||||
|
Loading…
Reference in New Issue
Block a user