Okay, I always have issues like this:
I want a float to be a number that has EXACTLY two decimals below it. I always want it to display this way. I don't want it to show even a thousands, and I want numbers that don't have decimals to still display ".00" at the end. This can be accomplished using Matrix1Utils by some variant of PAD STRING RIGHT, how I'm not sure.
SYNC ON
SYNC RATE 40
fl#=0.050
DO
CLS
PRINT fl#
IF UPKEY()=1 THEN INC fl#,0.050
SYNC
LOOP
After holding UP long enough, I eventually got "23.3999".
In math class, this behavior is not permitted. In my game economy, I don't want to run serious risk of my numbers bugging out and outputting nonsense values like that.
And YES, I do need to implement serious floating-point related calculations. For example, price increases of 105%. I then need to round down or up to the nearest hundredth, as the situation permits.
Is there an actual fix for this? Why won't floats behave?