TruncOperator

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the trunc of <Operand>
Associationscom.livecode.math
Summary

Truncation operator.

Parameters
NameTypeDescription
Operand

An expression that evaluates to a number.

Example
variable tVar as Number
put the trunc of 3.9 into tVar -- tVar contains 3
Values
NameTypeDescription
return

Operand truncated.

Description

The trunc of Operand is the integer part of the decimal representation of Operand.

Tagsmath