Category:LSL Integer
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Integers
An integer data types are signed 32 bit values between −2,147,483,648 and +2,147,483,647 (that is 0x80000000 to 0x7FFFFFFF in hex). Integers are whole numbers. The fractional datatype is the float.
DEBUG_CHANNEL can be used as a constant for the maximum integer (for that is the value it is defined as).
Examples
All of the following are integers: <lsl>integer firstInt = 5512623; integer secondInt = ACTIVE; integer thirdInt = 0x61EC1A; integer fourthInt = -160693;</lsl>
The following are NOT integers, use float for them: <lsl> integer decimalValue = 125.2; // ERROR : Type mismatch -- Integer literals can't have a decimal. integer bigValue = 3147483647; // An undocumented way to say -1,147,483,649 // Integer literals can't be larger than 2,147,483,647. integer biggerValue = 10123456789; // An undocumented way to say -1 // Integer literals can't be larger than 2,147,483,647. </lsl>
Further Reading
For a more extensive coverage of integers, including the different ways they are used in LSL, see LSL in Focus: Integers.
Subcategories
This category has the following 19 subcategories, out of 19 total.
I
Pages in category "LSL Integer"
The following 54 pages are in this category, out of 658 total.
(previous page) (next page)T
V
- VEHICLE FLAG NO FLY UP
- VEHICLE ANGULAR DEFLECTION EFFICIENCY
- VEHICLE ANGULAR DEFLECTION TIMESCALE
- VEHICLE ANGULAR FRICTION TIMESCALE
- VEHICLE ANGULAR MOTOR DECAY TIMESCALE
- VEHICLE ANGULAR MOTOR DIRECTION
- VEHICLE ANGULAR MOTOR TIMESCALE
- VEHICLE BANKING EFFICIENCY
- VEHICLE BANKING MIX
- VEHICLE BANKING TIMESCALE
- VEHICLE BUOYANCY
- VEHICLE FLAG BLOCK INTERFERENCE
- VEHICLE FLAG CAMERA DECOUPLED
- VEHICLE FLAG HOVER GLOBAL HEIGHT
- VEHICLE FLAG HOVER TERRAIN ONLY
- VEHICLE FLAG HOVER UP ONLY
- VEHICLE FLAG HOVER WATER ONLY
- VEHICLE FLAG LIMIT MOTOR UP
- VEHICLE FLAG LIMIT ROLL ONLY
- VEHICLE FLAG MOUSELOOK BANK
- VEHICLE FLAG MOUSELOOK STEER
- VEHICLE FLAG NO DEFLECTION UP
- VEHICLE HOVER EFFICIENCY
- VEHICLE HOVER HEIGHT
- VEHICLE HOVER TIMESCALE
- VEHICLE LINEAR DEFLECTION EFFICIENCY
- VEHICLE LINEAR DEFLECTION TIMESCALE
- VEHICLE LINEAR FRICTION TIMESCALE
- VEHICLE LINEAR MOTOR DECAY TIMESCALE
- VEHICLE LINEAR MOTOR DIRECTION
- VEHICLE LINEAR MOTOR OFFSET
- VEHICLE LINEAR MOTOR TIMESCALE
- VEHICLE REFERENCE FRAME
- VEHICLE TYPE AIRPLANE
- VEHICLE TYPE BALLOON
- VEHICLE TYPE BOAT
- VEHICLE TYPE CAR
- VEHICLE TYPE NONE
- VEHICLE TYPE SLED
- VEHICLE VERTICAL ATTRACTION EFFICIENCY
- VEHICLE VERTICAL ATTRACTION TIMESCALE
- VERTICAL