Sign in Join
FPDoc Onlineexperiment

TNumberKind enumeration

In unit fpExprPars

Type representing different number formats that can be parsed

Declaration

pascal
TNumberKind = (nkDecimal,nkHex,nkOctal,nkBinary)

Description

This enumeration defines the different numerical base formats that the expression scanner can recognize and parse when tokenizing numeric literals in expressions.

The scanner can handle numbers in various bases commonly used in programming and mathematical contexts, allowing expressions to contain numbers in the most convenient format for the specific use case.

Each kind represents a different base system with its own parsing rules and digit validation requirements during the scanning process.

Values

nkDecimalDecimal number format (base 10)
nkHexHexadecimal number format (base 16)
nkOctalOctal number format (base 8)
nkBinaryBinary number format (base 2)

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