Skip to content

ToLong

Int ToLong(Real input)

System · system operation · implicitly imported

Converts a Real to an Int, truncating the fractional part.

Parameters

  • Real input — The Real to convert.

Returns

Int — input as an Int, truncated towards zero.

Errors

A runtime type error if input is not a Real.

Examples

Int i = ToLong(3.7);

See Also