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 200 pages are in this category, out of 658 total.
(previous page) (next page)P
- PRIM BUMP CHECKER
- PRIM BUMP CONCRETE
- PRIM BUMP DARK
- PRIM BUMP DISKS
- PRIM BUMP GRAVEL
- PRIM BUMP LARGETILE
- PRIM BUMP NONE
- PRIM BUMP SHINY
- PRIM BUMP SIDING
- PRIM BUMP STONE
- PRIM BUMP STUCCO
- PRIM BUMP SUCTION
- PRIM BUMP TILE
- PRIM BUMP WEAVE
- PRIM BUMP WOOD
- PRIM CLICK ACTION
- PRIM COLOR
- PRIM DAMAGE
- PRIM DESC
- PRIM FLEXIBLE
- PRIM FULLBRIGHT
- PRIM GLOW
- PRIM GLTF ALPHA MODE BLEND
- PRIM GLTF ALPHA MODE MASK
- PRIM GLTF ALPHA MODE OPAQUE
- PRIM GLTF BASE COLOR
- PRIM GLTF EMISSIVE
- PRIM GLTF METALLIC ROUGHNESS
- PRIM GLTF NORMAL
- PRIM HEALTH
- PRIM HOLE CIRCLE
- PRIM HOLE DEFAULT
- PRIM HOLE SQUARE
- PRIM HOLE TRIANGLE
- PRIM LINK TARGET
- PRIM MATERIAL
- PRIM MATERIAL FLESH
- PRIM MATERIAL GLASS
- PRIM MATERIAL LIGHT
- PRIM MATERIAL METAL
- PRIM MATERIAL PLASTIC
- PRIM MATERIAL RUBBER
- PRIM MATERIAL STONE
- PRIM MATERIAL WOOD
- PRIM MEDIA ALT IMAGE ENABLE
- PRIM MEDIA AUTO LOOP
- PRIM MEDIA AUTO PLAY
- PRIM MEDIA AUTO SCALE
- PRIM MEDIA AUTO ZOOM
- PRIM MEDIA CURRENT URL
- PRIM MEDIA FIRST CLICK INTERACT
- PRIM MEDIA HEIGHT PIXELS
- PRIM MEDIA HOME URL
- PRIM MEDIA PERMS CONTROL
- PRIM MEDIA PERMS INTERACT
- PRIM MEDIA PERM ANYONE
- PRIM MEDIA PERM GROUP
- PRIM MEDIA PERM NONE
- PRIM MEDIA PERM OWNER
- PRIM MEDIA WHITELIST
- PRIM MEDIA WHITELIST ENABLE
- PRIM MEDIA WIDTH PIXELS
- PRIM NAME
- PRIM NORMAL
- PRIM OMEGA
- PRIM PHANTOM
- PRIM PHYSICS
- PRIM PHYSICS SHAPE CONVEX
- PRIM PHYSICS SHAPE NONE
- PRIM PHYSICS SHAPE PRIM
- PRIM PHYSICS SHAPE TYPE
- PRIM POINT LIGHT
- PRIM POSITION
- PRIM POS LOCAL
- PRIM PROJECTOR
- PRIM REFLECTION PROBE
- PRIM REFLECTION PROBE BOX
- PRIM REFLECTION PROBE DYNAMIC
- PRIM REFLECTION PROBE MIRROR
- PRIM RENDER MATERIAL
- PRIM ROTATION
- PRIM ROT LOCAL
- PRIM SCRIPTED SIT ONLY
- PRIM SCULPT FLAG ANIMESH
- PRIM SCULPT FLAG INVERT
- PRIM SCULPT FLAG MIRROR
- PRIM SCULPT TYPE CYLINDER
- PRIM SCULPT TYPE MASK
- PRIM SCULPT TYPE MESH
- PRIM SCULPT TYPE PLANE
- PRIM SCULPT TYPE SPHERE
- PRIM SCULPT TYPE TORUS
- PRIM SHINY HIGH
- PRIM SHINY LOW
- PRIM SHINY MEDIUM
- PRIM SHINY NONE
- PRIM SIT TARGET
- PRIM SIZE
- PRIM SLICE
- PRIM SPECULAR
- PRIM TEMP ON REZ
- PRIM TEXGEN
- PRIM TEXGEN DEFAULT
- PRIM TEXGEN PLANAR
- PRIM TEXT
- PRIM TEXTURE
- PRIM TYPE
- PRIM TYPE BOX
- PRIM TYPE CYLINDER
- PRIM TYPE PRISM
- PRIM TYPE RING
- PRIM TYPE SCULPT
- PRIM TYPE SPHERE
- PRIM TYPE TORUS
- PRIM TYPE TUBE
- PROFILE NONE
- PROFILE SCRIPT MEMORY
- PUBLIC CHANNEL
R
- RCERR CAST TIME EXCEEDED
- RCERR SIM PERF LOW
- RCERR UNKNOWN
- RC DATA FLAGS
- RC DETECT PHANTOM
- RC GET LINK NUM
- RC GET NORMAL
- RC GET ROOT KEY
- RC MAX HITS
- RC REJECT AGENTS
- RC REJECT LAND
- RC REJECT NONPHYSICAL
- RC REJECT PHYSICAL
- RC REJECT TYPES
- REGION FLAG ALLOW DAMAGE
- REGION FLAG ALLOW DIRECT TELEPORT
- REGION FLAG BLOCK FLY
- REGION FLAG BLOCK TERRAFORM
- REGION FLAG DISABLE COLLISIONS
- REGION FLAG DISABLE PHYSICS
- REGION FLAG FIXED SUN
- REGION FLAG RESTRICT PUSHOBJECT
- REGION FLAG SANDBOX
- REMOTE DATA CHANNEL
- REMOTE DATA REPLY
- REMOTE DATA REQUEST
- REVERSE
- REZ DAMAGE
- REZ DAMAGE TYPE
- ROTATE
S
- SCALE
- SCRIPTED
- SIM STAT ACTIVE SCRIPT COUNT
- SIM STAT AGENT COUNT
- SIM STAT AGENT MS
- SIM STAT AGENT UPDATES
- SIM STAT AI MS
- SIM STAT ASSET DOWNLOADS
- SIM STAT ASSET UPLOADS
- SIM STAT CHILD AGENT COUNT
- SIM STAT FRAME MS
- SIM STAT IMAGE MS
- SIM STAT IO PUMP MS
- SIM STAT NET MS
- SIM STAT OTHER MS
- SIM STAT PACKETS IN
- SIM STAT PACKETS OUT
- SIM STAT PCT CHARS STEPPED
- SIM STAT PHYSICS FPS
- SIM STAT PHYSICS MS
- SIM STAT PHYSICS OTHER MS
- SIM STAT PHYSICS SHAPE MS
- SIM STAT PHYSICS STEP MS
- SIM STAT SCRIPT EPS
- SIM STAT SCRIPT MS
- SIM STAT SCRIPT RUN PCT
- SIM STAT SLEEP MS
- SIM STAT SPARE MS
- SIM STAT UNACKED BYTES
- SMOOTH
- STATUS BLOCK GRAB
- STATUS BLOCK GRAB OBJECT
- STATUS BOUNDS ERROR
- STATUS CAST SHADOWS
- STATUS DIE AT EDGE
- STATUS DIE AT NO ENTRY
- STATUS INTERNAL ERROR
- STATUS MALFORMED PARAMS
- STATUS NOT FOUND
- STATUS NOT SUPPORTED
- STATUS OK
- STATUS PHANTOM
- STATUS PHYSICS
- STATUS RETURN AT EDGE
- STATUS ROTATE X
- STATUS ROTATE Y
- STATUS ROTATE Z
- STATUS SANDBOX
- STATUS TYPE MISMATCH
- STATUS WHITELIST FAILED
- STRING TRIM
- STRING TRIM HEAD