JavaScript Integer to Float


Example

In JavaScript, all numbers are internally represented as floats. This means that simply using your integer as a float is all that must be done to convert it.