toLong

Parse an integer value from the provided string.

The string is inspected for a sign and an optional radix prefix. A radix may be provided as an argument instead, whereupon it must match the prefix (where present). When radix is set to zero, conversion will default to decimal.

bool
toLong
(
T
)
(
T[] digits
,
out long value
,
uint radix = 0
)

Parameters

T

char type of string

digits T[]

string to parse

value long

receives parsed integer

radix uint

specifies which radix to interpret the string as

Return Value

Type: bool

true if parsing succeeded

Meta