Skip to content

Modern Math TryParseULongInt

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Math Library › Math Library › TryParseULongInt

TryParseULongInt

Parses a whole string as a ULongInt, returning an empty Optional if invalid or too big.

Syntax

TryParseULongInt( s )

Examples

#import "std/numeric"
using numeric

var r = TryParseULongInt( "18446744073709551615" )
print r.HasValue( )          '' true
print r.Value( )             '' 18446744073709551615

print TryParseULongInt( "-1" ).HasValue( )    '' false

Library: Math Library
Category: Math Library
Documented under: Nothing Becomes A Keyword

Clone this wiki locally