lslforge icon indicating copy to clipboard operation
lslforge copied to clipboard

Wrongly autocasting float variable value

Open RayZopf opened this issue 8 years ago • 0 comments

Definition of float variable allocating an integer value gets autocasted by LSLForge to integer. Autocasting at this point is different to SL inworld.

float a = 3;
// when using a in an operation, it is treated as integer value by LSLForge
// using float a or float a = 3 _and_ another line a = 3 stops optimizing -
// keeping the float a =3; line so that Mono later autocasts the value to float (3.000000)

see https://github.com/raysilent/lslforge/pull/1#issuecomment-186696555 and following https://github.com/raysilent/lslforge/pull/1#issuecomment-186975621 is a possible way how to handle this

at least this behaviour needs to be stated (esp. as Mono/LSO inworld also do autocasting to integer)

RayZopf avatar Feb 25 '16 22:02 RayZopf