lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: catching divide by zero
From
: Oliver Kroth <oliver.kroth@
...
>
Date
: Thu, 19 Dec 2013 16:00:21 +0100
No number x can solve x*x = -1, so its solution is not a number NaN...
Same with asin(2). No number x solves 2 = sin(x)
If that is a problem, try
local nan_value = math.sqrt(-1)
or
local nan_value = math.asin(2)
Math magic >.>
Reveal your secrets, wizard!
Follow-Ups
:
Re: catching divide by zero
,
Coda Highland
References
:
catching divide by zero
,
Andy Colson
Re: catching divide by zero
,
Luiz Henrique de Figueiredo
Re: catching divide by zero
,
Sir Pogsalot
Prev by Date:
Re: catching divide by zero
Next by Date:
Re: [ANN] ZeroBrane Studio 0.40
Previous by thread:
Re: catching divide by zero
Next by thread:
Re: catching divide by zero
Index(es):
Date
Thread