Hi all,
Can someone please explain to me how one is supposed to convert an integer, say 5 to 5.00 in javascript? I need the converted value to be of type Number, not a string (toFixed wont work for this).
I have my final advanced algorithm challenge (exact change) done but I can’t get the formatting of the numbers correct (they are currently strings instead of type Number).
I have tried nearly everything I’ve read on stacked overflow but it either A) doesn’t work or B) will return the correct value as a string instead of a Number.
Is there seriously no way to go 3 -> 3.00 instead of 3 -> “3.00” in javascript?