10-12-2023, 02:28 PM
The problem you're seeing is the basic limit of PRINT in printing your value to the screen, as shown below:
The solution is, as was suggested earlier by someone else, to simply swap over to PRINT USING to print your values and have it truncate the result at you specify.
PRINT caps out at DOUBLE precision, from what I remember, while _FLOAT can store values much smaller/larger than that.
Code: (Select All)
PRINT .07000000000000001; ", "; 0.011
PRINT USING ".###, .###"; .07000000000000001, 0.011
The solution is, as was suggested earlier by someone else, to simply swap over to PRINT USING to print your values and have it truncate the result at you specify.
PRINT caps out at DOUBLE precision, from what I remember, while _FLOAT can store values much smaller/larger than that.