Sign in Join
FPDoc Onlineexperiment

StrToUInt64 function

In unit sysutils

Convert a string to unsigned integer value.

Declaration

pascal
function StrToUInt64(const s: string): UInt64

Description

StrToUInt64 will convert the string Sto an unsigned 64-bit integer. If the string contains invalid characters or has an invalid format, then an EConvertError is raised.

To be successfully converted, a string can contain a combination of numerical characters, possibly preceded by a minus sign (-). Spaces are not allowed.

The string S can contain a number in decimal, hexadecimal, binary or octal format, as described in the language reference.

For hexadecimal values, the prefix '0x' or 'x' (case insensitive) may be used as well.

Errors

In case of error, an EConvertError is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.