How can I define NaN in script?

If you divided 0 by 0, you would get NaN, but how can I define it in script?

2 Likes

local NaNValue = 0/0

Maybe this would work? By the way why are you trying to get a NaN value

1 Like

You can check if the result is nan, nan is a number by the way

if 0/0 ~= 0/0 then
3 Likes

A bug in my fuel system. It sometimes waits for NaN.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.