Login
Plus/4 EncyclopediaFirstBackNextLast

INT Function
Category
Reference/Commodore BASIC V3.5

Topic
INT(X)

This function returns a numeric value.

This function truncates a number with decimal parts into an INTeger number. The INT function only ignores the decimal part, it does not round the number. Therefore, it always returns the next lowest integer.

Examples
INT(9.34) Returns the value 9
INT(-5.1) Returns the value -6, as it is the next lowest integer

Abbreviation
None



Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon