I need to change 8.34 to 8.4, 27.62 to 27.7 (not 27.6)
i came with code so far
var a = 3.34
a.toFixed(1) // 8.3 the result i need is 8.4
var b = 27.62 // 2.7 this correct
tried using several function like round()
or Math.floor()
, i know the result should be 8.34 if we round it 8.3 because it's not 8.35, but can we make 8.34 become to 8.4 ?