JanetDocsSign in with Github

scan-number



    cfunction

    (scan-number str)
    
    Parse a number from a byte sequence an return that number, either and
    integer or a real. The number must be in the same format as numbers in
    janet source code. Will return nil on an invalid number.


1 exampleSign in to add an example
Loading...
(scan-number "123") # => 123
swlkr