Using Director > Writing Scripts with Lingo > Expressing literal values > Using integers |
![]() ![]() ![]() |
Using integers
An integer is a whole number, without any fractions or decimal places.
Director works with integers between -2,147,483,648 and +2,147,483,647. (For numbers outside this range, use decimal numbers, sometimes called floating-point numbers.) Enter integers without using commas. Use a minus (-
) sign for negative numbers.
You can convert a decimal number to an integer by using the integer()
function. For example, the statement set theNumber = integer(3.9)
rounds off the decimal number 3.9 and converts it to the integer 4.
Some Lingo commands and functions require integers for their parameters. The requirements for specific Lingo elements can be found in Director Help or the Lingo Dictionary.
![]() ![]() ![]() |