You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/jsbignum.texi
+13-16
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ More precisely, the following modifications were made:
57
57
58
58
@item@code{withoperatorsfrom} is not supported. Operator overloading is always enabled.
59
59
60
-
@item The dispatch is not based on a static @code{[[OperatorSet]]} field in all instances. Instead, a dynamic lookup the of the @code{Symbol.operatorSet} property is done. This property is typically added in the prototype of each object.
60
+
@item The dispatch is not based on a static @code{[[OperatorSet]]} field in all instances. Instead, a dynamic lookup of the @code{Symbol.operatorSet} property is done. This property is typically added in the prototype of each object.
61
61
62
62
@item@code{Operators.create(...dictionaries)} is used to create a new OperatorSet object. The @code{Operators} function is supported as an helper to be closer to the TC39 proposal.
63
63
@@ -119,7 +119,7 @@ Return the number of trailing zeros in the two's complement binary representatio
119
119
@section Introduction
120
120
121
121
This extension adds the @code{BigFloat} primitive type. The
122
-
@code{BigFloat} type represents floating point numbers are in base 2
122
+
@code{BigFloat} type represents floating point numbers in base 2
123
123
with the IEEE 754 semantics. A floating
124
124
point number is represented as a sign, mantissa and exponent. The
125
125
special values @code{NaN}, @code{+/-Infinity}, @code{+0} and @code{-0}
@@ -143,15 +143,13 @@ explicit.}. The status flags of the global environment cannot be
operators.}. The precision of the global environment is
145
145
@code{BigFloatEnv.prec}. The number of exponent bits of the global
146
-
environment is @code{BigFloatEnv.expBits}. If @code{BigFloatEnv.expBits} is
147
-
strictly smaller than the maximum allowed number of exponent bits
148
-
(@code{BigFloatEnv.expBitsMax}), then the global environment subnormal
149
-
flag is set to @code{true}. Otherwise it is set to @code{false};
146
+
environment is @code{BigFloatEnv.expBits}. The global environment
147
+
subnormal flag is set to @code{true}.
150
148
151
-
For example, @code{prec=53} and @code{ expBits=11} give exactly
152
-
the same precision as the IEEE 754 64 bit floating point. The
149
+
For example, @code{prec=53} and @code{ expBits=11} exactly give
150
+
the same precision as the IEEE 754 64 bit floating point format. The
153
151
default precision is @code{prec=113} and @code{ expBits=15} (IEEE
154
-
754 128 bit floating point).
152
+
754 128 bit floating point format).
155
153
156
154
The global floating point environment can only be modified temporarily
157
155
when calling a function (see @code{BigFloatEnv.setPrec}). Hence a
@@ -345,9 +343,8 @@ environment. The initial value is @code{113}.
345
343
346
344
@item expBits
347
345
Getter. Return the exponent size in bits of the global floating point
348
-
environment assuming an IEEE 754 representation. If @code{expBits<
349
-
expBitsMax}, then subnormal numbers are supported. The initial value
350
-
is @code{15}.
346
+
environment assuming an IEEE 754 representation. The initial value is
347
+
@code{15}.
351
348
352
349
@item setPrec(f, p[, e])
353
350
Set the precision of the global floating point environment to @code{p}
@@ -492,7 +489,7 @@ BigDecimal literals are decimal floating point numbers with a trailing
492
489
493
490
It returns @code{0m} if no parameter is provided. Otherwise the first
494
491
parameter is converted to a bigdecimal by using ToString(). Hence
495
-
Number value are not converted to their exact numerical value as
492
+
Number values are not converted to their exact numerical value as
496
493
BigDecimal.
497
494
498
495
@subsection Properties of the @code{BigDecimal} object
@@ -581,11 +578,11 @@ The following changes are made to the Javascript semantics:
581
578
582
579
@item The logical xor operator is still available with the @code{^^} operator.
583
580
584
-
@item The integer division operator can be overloaded by modifying the corresponding operator in @code{BigInt.prototype.[[OperatorSet]]}.
581
+
@item The modulo operator (@code{%}) returns the Euclidian remainder (always positive) instead of the truncated remainder.
585
582
586
-
@item The integer power operator with a non zero negative exponent can be overloaded by modifying the corresponding operator in @code{BigInt.prototype.[[OperatorSet]]}.
583
+
@item The integer division operator can be overloaded with @code{Operators.updateBigIntOperators(dictionary)}.
587
584
588
-
@item The modulo operator (@code{%}) returns the Euclidian remainder (always positive) instead of the truncated remainder.
585
+
@item The integer power operator with a non zero negative exponent can be overloaded with @code{Operators.updateBigIntOperators(dictionary)}.
0 commit comments