05-13-2022, 01:21 PM
No, honestly, they're *exactly* the same thing. Let me share some code for you.
First, the BAS code:
And then, if you look in internal/temp, you can see where this code is translated in c-code:
If you notice, INT translates directly into floor. INT is the BASIC equivalent of floor. It translates one-on-one to the other, and that's why we don't have a _FLOOR command -- BASIC already has INT.
First, the BAS code:
Code: (Select All)
A = Int(-99.5)
And then, if you look in internal/temp, you can see where this code is translated in c-code:
Code: (Select All)
*__SINGLE_A=floor( -99.5E+0 );
If you notice, INT translates directly into floor. INT is the BASIC equivalent of floor. It translates one-on-one to the other, and that's why we don't have a _FLOOR command -- BASIC already has INT.