Template:CastingOperationsTable

From QB64 Wiki
Jump to navigation Jump to search

The following table describes the casting operations, where n is an operand:

Operation Description
CINT(n) Casts the numeric value n to an INTEGER value, rounding half away from zero.
CLNG(n) Casts the numeric value n to a LONG value, rounding half away from zero.
CSNG(n) Casts the numeric value n to a SINGLE value.
CDBL(n) Casts the numeric value n to a DOUBLE value.