Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

For God's sake, tell me the WHAT and the WHERE of the math error.

Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
02-12-2004 00:46
#1: What script was it in?
#2: What line in that script?
#3: What **********WAS********** it?

Was it divide by zero?
Was it a domain error?
Was it something else?

I am chasing down a "math error" bug in a product I'm working on, and these math errors are seriously giving me THE BUSINESS. I have it narrowed down to either divide by zero or value being passed to llAcos(), but I JUST DON'T KNOW. Is it one? The other? Both? Something else entirely?
Mark Busch
DarkLife Developer
Join date: 8 Apr 2003
Posts: 442
02-12-2004 11:45
tough one :)
What I know about is: division by zero
sqrt of negative values
passing values >1 to llAsin and llACos
some weird thing with llRowBetween.

I really would love to see script errors more detailed.
at least WHAT script and WHAT line!
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
02-14-2004 02:34
Add to the list:

Overflow errors by not keeping track of what you're passing to llPow().

739588241905006393231374918694731776.000000 was the last number resulting from an exponential calculation before overflowing. Big!