// 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);
// 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);
// 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);
// 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);