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
011bf2b6
Commit
011bf2b6
authored
Apr 21, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor adjustments to comments for better godoc output
R=r DELTA=6 (0 added, 0 deleted, 6 changed) OCL=27686 CL=27688
parent
3ae849d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
bignum.go
src/lib/bignum.go
+6
-6
No files found.
src/lib/bignum.go
View file @
011bf2b6
...
...
@@ -702,7 +702,7 @@ func (x Natural) ToString(base uint) string {
// String converts x to its decimal string representation.
//
(x.String is the same as x.ToString(10)
).
//
x.String() is the same as x.ToString(10
).
//
func
(
x
Natural
)
String
()
string
{
return
x
.
ToString
(
10
);
...
...
@@ -1099,9 +1099,9 @@ func (x *Integer) QuoRem(y *Integer) (*Integer, *Integer) {
// r = x.Mod(y) with: 0 <= r < |q| and: y = x*q + r
//
// (Raymond T. Boute, The Euclidian definition of the functions
//
div and mod. "ACM Transactions on Programming Languages and
//
Systems (TOPLAS)", 14(2):127-144, New York, NY, USA, 4/1992.
//
ACM press.)
// div and mod. "ACM Transactions on Programming Languages and
// Systems (TOPLAS)", 14(2):127-144, New York, NY, USA, 4/1992.
// ACM press.)
//
func
(
x
*
Integer
)
Div
(
y
*
Integer
)
*
Integer
{
q
,
r
:=
x
.
QuoRem
(
y
);
...
...
@@ -1251,7 +1251,7 @@ func (x *Integer) ToString(base uint) string {
// String converts x to its decimal string representation.
//
(x.String is the same as x.ToString(10)
).
//
x.String() is the same as x.ToString(10
).
//
func
(
x
*
Integer
)
String
()
string
{
return
x
.
ToString
(
10
);
...
...
@@ -1431,7 +1431,7 @@ func (x *Rational) ToString(base uint) string {
// String converts x to its decimal string representation.
//
(x.String is the same as x.ToString(10)
).
//
x.String() is the same as x.ToString(10
).
//
func
(
x
*
Rational
)
String
()
string
{
return
x
.
ToString
(
10
);
...
...
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