I know that using decimals with JS is discouraged because of accuracy problems when doing calculations.
Is this valid for Babylon.js also?
I want to create a Metric and Imperial measurement system (Centimeters and inches) and I am considering whether to allow decimals.
In general any tips about this?
I was considering to do something like:
1 unit = 1 CM
1 unit = 1 INCH + decimals
OR INSTEAD use integers to simulate decimals? e.g.
100 units = 1 CM
100 units = 1 INCH
Use toFixed() JS method to restrict the decimal numbers to 2? Because now I get very big numbers with 10+ decimals.