Skip to content

Wrongly autocasting float variable value #7

Description

@RayZopf

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
#1 (comment) and following
#1 (comment) 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions