You tried to parse a floating point number from a string that, as per a previous instruction, starts with the character '$'. That character isn't a valid part of a properly formatted floating point number, so parseFloat() returns the special floating point value NaN.
No comments:
Post a Comment