I have a number with a comma, for example: 254,5. I need the 0 behind the ,5 so it stands like 254,50 instead..
254,5
0
,5
254,50
I'm using this to get the number:
Math.floor(iAlt / 50) * 50;
How can i get the 0 behind the ,5?