Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
08b5b484
Commit
08b5b484
authored
Jul 28, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constants for integer limits
R=rsc DELTA=16 (16 added, 0 deleted, 0 changed) OCL=32288 CL=32288
parent
326de9ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
const.go
src/pkg/math/const.go
+16
-0
No files found.
src/pkg/math/const.go
View file @
08b5b484
...
...
@@ -21,11 +21,27 @@ const (
Log2E
=
1
/
Ln2
;
Ln10
=
2.30258509299404568401799145468436420760110148862877297603332790
;
// A002392
Log10E
=
1
/
Ln10
;
)
// Limit values
const
(
MaxFloat32
=
3.40282346638528860e+38
;
MinFloat32
=
1.40129846432481707e-45
;
MaxFloat64
=
1.7976931348623157e+308
;
MinFloat64
=
5.0e-324
;
MaxInt8
=
1
<<
7
-
1
;
MinInt8
=
-
1
<<
7
;
MaxInt16
=
1
<<
15
-
1
;
MinInt16
=
-
1
<<
15
;
MaxInt32
=
1
<<
31
-
1
;
MinInt32
=
-
1
<<
31
;
MaxInt64
=
1
<<
63
-
1
;
MinInt64
=
-
1
<<
63
;
MaxUint8
=
1
<<
8
-
1
;
MaxUint16
=
1
<<
16
-
1
;
MaxUint32
=
1
<<
32
-
1
;
MaxUint64
=
1
<<
64
-
1
;
)
// BUG(rsc): The manual should define the special cases for all of these functions.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment