| INSERT | Index Level | Pick/BASIC |
| Syntax | INT( num.expression ) |
| Category | BASIC |
| Type | Function |
| Description | returns the numeric integer equivalent from a given expression. |
| Options | |
| See Also | statements & functions PRECISION num.expression ABS functions |
| Example |
print int(5.1)
5 This simple example truncates the decimal and returns the integer portion of the number. x = 10.25 y = int(x*10)/10 print y 10.2 This is an example of how you can use the "int" function to keep one decimal place and truncate the rest. |
| Warnings | |
| Compatibility | D3 7.0 AP R83 |
| INSERT | Index Level | Pick/BASIC |