Skip to reading
PCA Script Programming

abs()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page
Code example
abs(value)

Remove a number’s sign.

Returns: Nonnegative numeric value.

Code example
abs(-12)

round()#

Code example
round(value)

Round to the nearest whole value.

Returns: Whole numeric value.

Code example
round(2.6)

floor()#

Code example
floor(value)

Round down toward negative infinity.

Returns: Whole numeric value.

Code example
floor(-2.2)

ceil()#

Code example
ceil(value)

Round up toward positive infinity.

Returns: Whole numeric value.

Code example
ceil(2.2)
Page 54 of 357Permalink
Go to page