Document special float values
parent
30a44225cd
commit
1c68b389cc
|
@ -25,7 +25,7 @@ $nl
|
||||||
ABOUT: "number-strings"
|
ABOUT: "number-strings"
|
||||||
|
|
||||||
HELP: digits>integer
|
HELP: digits>integer
|
||||||
{ $values { "seq" "a sequence of integers" } { "radix" "an integer between 2 and 36" } { "n" integer } }
|
{ $values { "seq" "a sequence of integers" } { "radix" "an integer between 2 and 36" } { "n/f" { $maybe integer } } }
|
||||||
{ $description "Converts a sequence of digits (with most significant digit first) into an integer." }
|
{ $description "Converts a sequence of digits (with most significant digit first) into an integer." }
|
||||||
{ $notes "This is one of the factors of " { $link string>number } "." } ;
|
{ $notes "This is one of the factors of " { $link string>number } "." } ;
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,12 @@ ARTICLE: "syntax-floats" "Float syntax"
|
||||||
"7.e13"
|
"7.e13"
|
||||||
"1.0e-5"
|
"1.0e-5"
|
||||||
}
|
}
|
||||||
|
"There are three special float values:"
|
||||||
|
{ $table
|
||||||
|
{ "Positive infinity" { $snippet "1/0." } }
|
||||||
|
{ "Negative infinity" { $snippet "-1/0." } }
|
||||||
|
{ "Not-a-number" { $snippet "0/0." } }
|
||||||
|
}
|
||||||
"More information on floats can be found in " { $link "floats" } "." ;
|
"More information on floats can be found in " { $link "floats" } "." ;
|
||||||
|
|
||||||
ARTICLE: "syntax-complex-numbers" "Complex number syntax"
|
ARTICLE: "syntax-complex-numbers" "Complex number syntax"
|
||||||
|
|
Loading…
Reference in New Issue