Table of Contents

Advertisement

INT
Purpose
Returns the largest integer which does not exceed <X>.
Form
INT(<X»
Description
(1) If the <X> is positive, the fraction part is round­
ed off. If it is negative, the fraction part is rounded
up to obtain the result.
Examples
>10 PRINT INT( 10)
>20 PRINT INT( 10.9999)
>25 PRINT INT ( 10.001)
>30 PRINT INT(-10.05)
>RUN
10
10
10
-11
3-92

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents