S>NUMBER? ( addr len -- n fl )
published: 31 January 2022 / updated 23 January 2023
vocabulary: internals
Evaluates the content of a character string and tries to transform the content into a number.
Leave the value n and -1 if the evaluation is successful
Example:
s" 27" S>NUMBER? \ leave 27 -1 on stack
Legal: site web personnel sans commerce / personal site without seling