I am sure this is a simple problem, but I am comparing negative numbers in javascript ie:
var num1 = -83.778; var num2 = -83.356; if(num1 < num2) {
This script will always take action 2, although num1 less than num2 . What is going on here?
javascript comparison numbers
Tom g
source share