Skip to content

Fix - Built-in Arithmetic Function

Purpose

Fix returns the integer portion of a number.

Syntax

Fix(num)

Arguments

Argument Required Description
num Yes Any numeric expression

Returns

Integer

Example

Return Fix(-99.8) // returns -99

Notes

  • When num cannot be converted to a number, a runtime error is generated.