Which type of variable should I use in order to calculate double values without floating points?
i.e. let x = 0.6
;
I want x*3/4
to be calculated as 0.45
instead of 0.44999999999999996
.
Which type of variable should I use in order to calculate double values without floating points?
i.e. let x = 0.6
;
I want x*3/4
to be calculated as 0.45
instead of 0.44999999999999996
.