2,736
edits
Red Leader (talk | contribs) (→Functions: Doc dump()) |
Red Leader (talk | contribs) (→Functions: Doc isnan()) |
||
| Line 171: | Line 171: | ||
=== isnan() === | === isnan() === | ||
{{Nasal doc | |||
|syntax = debug.isnan(num); | |||
|text = Checks whether a number actually is a valid number and returns 0 (false) if it is and 1 (true) if it is not. | |||
|param1 = num | |||
|param1text = Number to check. | |||
|example1 = print(debug.isnan(1.234)); # prints "0" (1.234 is valid) | |||
|example2 = print(debug.isnan(1/0)); # prints "1" (division by 0 is undefined) | |||
}} | |||
=== local() === | === local() === | ||
=== print_rank() === | === print_rank() === | ||