aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of19
1 files changed, 18 insertions, 1 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 61dd42f2..89e9b8f4 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -8341,6 +8341,17 @@ that rounds the quotient towards zero. (integer/float)
8341 8341
8342} 8342}
8343 8343
8344@LibEntry{math.frexp (x)|
8345
8346Returns two numbers @id{m} and @id{e} such that @M{x = m2@sp{e}},
8347where @id{e} is an integer.
8348When @id{x} is zero, NaN, +inf, or -inf,
8349@id{m} is equal to @id{x};
8350otherwise, the absolute value of @id{m}
8351is in the range @C{(} @M{[0.5, 1)} @C{]}.
8352
8353}
8354
8344@LibEntry{math.huge| 8355@LibEntry{math.huge|
8345 8356
8346The float value @idx{HUGE_VAL}, 8357The float value @idx{HUGE_VAL},
@@ -8348,6 +8359,12 @@ a value greater than any other numeric value.
8348 8359
8349} 8360}
8350 8361
8362@LibEntry{math.ldexp(m, e)|
8363
8364Returns @M{m2@sp{e}}, where @id{e} is an integer.
8365
8366}
8367
8351@LibEntry{math.log (x [, base])| 8368@LibEntry{math.log (x [, base])|
8352 8369
8353Returns the logarithm of @id{x} in the given base. 8370Returns the logarithm of @id{x} in the given base.
@@ -8403,7 +8420,7 @@ Converts the angle @id{x} from degrees to radians.
8403 8420
8404When called without arguments, 8421When called without arguments,
8405returns a pseudo-random float with uniform distribution 8422returns a pseudo-random float with uniform distribution
8406in the range @C{(} @M{[0,1)}. @C{]} 8423in the range @C{(} @M{[0, 1)}. @C{]}
8407When called with two integers @id{m} and @id{n}, 8424When called with two integers @id{m} and @id{n},
8408@id{math.random} returns a pseudo-random integer 8425@id{math.random} returns a pseudo-random integer
8409with uniform distribution in the range @M{[m, n]}. 8426with uniform distribution in the range @M{[m, n]}.