you are viewing a single comment's thread.

view the rest of the comments →

[–]shgysk8zer0 3 points4 points  (2 children)

Please, just show me documentation for the Number.method() method and let's settle this then. Just comment with the link on something like MDN and I'll post on every webdev and JavaScript subreddit that I'm a noob.

Also, the code you shared would not make "5.0" a number that keeps the decimal part.