by Brayla Sana | Jan 23, 2017 | LSL, OSSL, Types, Wiki
Float A float is an IEEE-754 32-bit floating point value ranging from ±1.401298464E-45 to ±3.402823466E+38. Examples: 9.9 10.0 100000.1 LSL floats can be specified in scientific notation, e.g. 1.123E-2 or 512E+3. Additionally, the letter f...
by Brayla Sana | Jan 23, 2017 | LSL, OSSL, Types, Wiki
An integer is a signed, 32-bit value with valid range from -2147483648 to 2147483647 (that is 0x80000000 to 0x7FFFFFFF in hex). LSL does not have an unsigned integer type. Examples: 10 122 -59438 0x5465 An integer is a whole number (no decimals). If you want decimals,...
by Brayla Sana | Jun 16, 2017 | LSL, OSSL, Types, Wiki
The key type is a specialized string, a unique identifier that can be used to reference objects, inventory items and agents in Second Life. Sometimes also referred to as UUID (Universal Unique IDentifier), UID, or asset-ID, a key can be represented as a string of...
by Brayla Sana | Jun 16, 2017 | LSL, OSSL, Types, Wiki
Instead of arrays, LSL uses lists. The list type is exactly what it sounds like: a heterogeneous list of the other data types. Lists are created via comma-separated values (CSV) of the other data types. enclosed by square brackets: “[” and “]”....
by Brayla Sana | Jan 23, 2017 | LSL, OSSL, Types, Wiki
NaN stands for Not a Number. NaNs are used to represent the results of operations that are not real numbers or are too big to fit into a float and therefore cannot be adequately represented with a float. In SL, generating a NaN (by 1.0/0.0) will crash the script. //...
by Brayla Sana | Jan 23, 2017 | LSL, OSSL, Types, Wiki
A rotation is a variable type comprising 4 floats used together as a single item. This data is interpreted as a quaternion. As with vectors, each component can be accessed via ‘.x’, ‘.y’, ‘.z’, and ‘.s’ (not...