$nl
"Outputs " { $link f } " if the string does not represent a number." } ;
-{ >bin POSTPONE: BIN: bin> .b } related-words
+{ >bin bin> .b } related-words
HELP: oct>
{ $values { "str" string } { "n/f" "a real number or " { $link f } } }
$nl
"Outputs " { $link f } " if the string does not represent a number." } ;
-{ >oct POSTPONE: OCT: oct> .o } related-words
+{ >oct oct> .o } related-words
HELP: hex>
{ $values { "str" string } { "n/f" "a real number or " { $link f } } }
$nl
"Outputs " { $link f } " if the string does not represent a number." } ;
-{ >hex POSTPONE: HEX: hex> .h } related-words
+{ >hex hex> .h } related-words
HELP: >base
{ $values { "n" real } { "radix" "an integer between 2 and 16" } { "str" string } }
scan-token scan-token "=>" expect scan-token add-renamed-word
] define-core-syntax
- "HEX:" [ 16 parse-base ] define-core-syntax
- "OCT:" [ 8 parse-base ] define-core-syntax
- "BIN:" [ 2 parse-base ] define-core-syntax
-
"NAN:" [ 16 scan-base <fp-nan> suffix! ] define-core-syntax
"f" [ f suffix! ] define-core-syntax