11-10-2018, 10:48 AM
Thanks for sharing the link.
Best way I've found to do fixed point floats is generate an integer 10 or 100 times the value you need and then divide to bring it back down. I.e randomExt.integer(100, 50)/100, will give 1 to 0.5 in 0.01 steps.
Best way I've found to do fixed point floats is generate an integer 10 or 100 times the value you need and then divide to bring it back down. I.e randomExt.integer(100, 50)/100, will give 1 to 0.5 in 0.01 steps.