ToInt

Converts a value to an integer type

Keywords

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Converts a value to an integer type

Technical Exegesis...

Converts a value to an integer type. Takes a Double or String and converts it to an Int. For doubles, truncates the decimal portion. For strings, parses the numeric value. Returns 0 if the string cannot be parsed as a number. Useful for type conversions when mixing different numeric types or parsing user input.

Example

Example.bam
; No example implemented yet