Skip to main content
added 115 characters in body
Source Link
Charles Ma
  • 49.6k
  • 22
  • 92
  • 102

Make one of those numbers a float.

737/parseFloat(1070)

or a bit faster:

737*1.0/1070

convert to 2 decimal places

Math.round(737 * 100.0 / 1070) / 100

Make one of those numbers a float.

737/parseFloat(1070)

Make one of those numbers a float.

737/parseFloat(1070)

or a bit faster:

737*1.0/1070

convert to 2 decimal places

Math.round(737 * 100.0 / 1070) / 100
Source Link
Charles Ma
  • 49.6k
  • 22
  • 92
  • 102

Make one of those numbers a float.

737/parseFloat(1070)