Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • You probably need to provide your input data too. It looks like it's converting something to a number that shouldn't be. Commented Mar 19, 2018 at 19:26
  • No I did not understand what is going on, please proofread and edit question. By the way NaN is often printed if you try to print a number that is not a number (Not a Number). This can happen if you divide a number by 0, or depending on the language try to do arithmetic with something that is not a number. Commented Mar 19, 2018 at 20:08