Loading ...
Sorry, an error occurred while loading the content.

Confusing decimal point

Expand Messages
  • Douglas Crockford
    When confronted with a number literal like .0725 JSLint no longer reports Don t use extra leading zeros 0725 . but it does report A leading decimal point can
    Message 1 of 1 , Apr 2, 2008
    • 0 Attachment
      When confronted with a number literal like

      .0725

      JSLint no longer reports

      Don't use extra leading zeros '0725'.

      but it does report

      A leading decimal point can be confused with a dot: '.0725'.
    Your message has been successfully submitted and would be delivered to recipients shortly.