SofaPirate / Plaquette

Object-oriented Arduino library for creative physical computing
https://sofapirate.github.io/Plaquette/
GNU General Public License v3.0
15 stars 4 forks source link

Consider using rational numbers for [0, 1] range floats #100

Open sofian opened 9 months ago

sofian commented 9 months ago

A lot of the calculations and representations of numbers in Plaquette are in the [0, 1] range. Since floats only have 24 bits of precision, it could be much more efficient to represent many of the calculations using integer-calculation with 24 bits (or even 32 bits for even more precision).