diff --git a/docs/index.html b/docs/index.html index 742f652..b01fba1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -151,9 +151,8 @@
- In all examples below, var
and semicolons are not shown, and
- if a commented-out value is in quotes it means toString
has
- been called on the preceding expression.
+ For brevity, var
, semicolons and toString
calls
+ have been omitted in the examples below.
Big.strict
is set to true
an error will be thrown if n
is not a string or Big number.
+
+ Note that primitive numbers are accepted purely as a convenience so that quotes
+ don't need to be typed for numeric literals of up to 15 significant digits, and
+ that a Big number is created from a number's toString
value rather
+ than from its underlying binary floating point value.
+
Infinity
, NaN
and hexadecimal literal
strings, e.g. '0xff', are not valid.
@@ -178,21 +183,20 @@
- String values may be in exponential, as well as normal (non-exponential) - notation. + String values may be in exponential, as well as normal notation.
There is no limit to the number of digits of a string value (other than that of JavaScript's maximum array size), but the largest recommended exponent magnitude is 1000000.
-Returns a new Big number object with value n
.
Returns a new Big number with value n
.
Throws if n
is invalid.
Using new
with Big is optional, but note that if no argument
is passed when doing so, or if the argument is undefined
,
- then a new Big constructor will be returned rather than a new Big number
- instance. See creating additional Big number constructors
+ then a new Big constructor will be returned rather than a new Big number.
+ See creating additional Big number constructors
below.