#https://community.bistudio.com/wiki/

1 messages · Page 1 of 1 (latest)

wraith reef
verbal rain
#

You can still generate infinity

#

only the string versions of the values changed

#

-1,#INF to -inf

Second is the C++ standard, first is what microsoft made up

wraith reef
#

aaah.

#

why the change tho?

verbal rain
#

Compiler upgrade, it now conforms to the standards

wraith reef
#

ok, well internal stuff I assume 😛 does the update ↑ seem accurate to you?

verbal rain
#

Yes thank you

#

btw also, I stumbled upon this, because sqrt of negative number returns nan(ind)

wraith reef
#

good, as I just clicked Publish 😄 thanks

verbal rain
#

sqrt -2.87305
is -nan(ind)

wraith reef
#

sooo… is that one a change?

verbal rain
#

Mh.. no its not

#

I think I'm on prof 😄

#

Contact script is running sqrt on a negative number. Which returns NaN, and then throws script error when it tries to use the NaN.

#

This is so weird.
in 2.16 it returns -1.#IND
so it, is a NaN.

But why did contact script not error before

wraith reef
#

¯_(ツ)_/¯

#

Armagic

noble echo
verbal rain
#

Yeah comparison with NaN, now behaves like it is supposed to behave.
We figured that out for contact two weeks ago