20
Math Functions
1:abs(
Absolute value
Syntax:
abs(
value
)
2:round(
Rounded value
Syntax:
round(
value
,
#decimals
)
3:iPart(
Integer part of a number
Syntax:
iPart(
value
)
4:fPart(
Fractional part of a number
Syntax:
fPart(
value
)
5:int(
Greatest integer that is
{
the number
Syntax:
int(
value
)
6:min(
Minimum of two numbers
Syntax:
min(
valueA
,
valueB
)
7:max(
Maximum of two numbers
Syntax:
max(
valueA
,
valueB
)
8:mod(
Modulo (remainder of first number
P
second
number)
Syntax:
mod(
dividend
,
divisor
)
Examples
abs(
d "
1
M % b
5
<
round(
d "
2
1.245
% `
1
) <
# # <
! ! ! ! !
5
<
iPart(
fPart(
4.9
L z <
d "
3
z ) <
d "
4
z )
<
int(
d "
5
M
5.6
) <
min(
max(
d "
6
4
% ` M
5
) <
d "
7
.6
% `
.7
) <