Math.round()

Posted on
  • 1v59 Copyright 2014 G.Williams
    >>Math.round(333.444)   
    =333
    > 
    1v60 Copyright 2014 G.Williams
    >Math.round(333.444) 
    =4644565814144401408
    >
    

    why gives Math.round() different results?

  • Because you're using an old version of 1v60 from Git?

    If you try it either with 1v59 from the website, or with a new version from Git, it should work fine (just tried here).

    I've just released a 'proper' version. Try a normal firmware update and see if that solves your problems.

  • Thank you, I downloaded 1V60 via IDE, and now it works again.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Math.round()

Posted by Avatar for Frida @Frida

Actions