User:SignpostMarv Martin/Sandbox/LSL/types

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

String types

string

key

  • Key is the data type used to store UUID
  • Although Second Life UUIDs adhere to a specific standard, the key data type itself can store any valid string.


Numeric types

float

  • LSL Floats adhere to the IEEE 754 standard for floating point numbers.

integer

  • In LSL, integers are 32-bit values ranging from -2147483648 to 2147483647.
  • LSL does not have an unsigned integer type (which would allow for values between 0 and 4294967295)
  • Integers can either be entered in decimal or hexadecimal

Examples

  1. integer foo = 10;
  2. integer bar = 0xa; // returns 10
  3. float bah = 10.0;
  1. integer foo = (integer)16.4; // returns 16
  2. float bar = 16.4;

vector

rotation

list

See Also