Difference between revisions of "Category:LSL Float"
Jump to navigation
Jump to search
m (New page: {{Multi-lang}}{{LSL Header}}{{LSLC|}}) |
m |
||
Line 1: | Line 1: | ||
{{Multi-lang}}{{LSL Header}}{{LSLC|}} | {{Multi-lang}} | ||
{{LSL Header}} | |||
{{LSLC|}}{{LSLC|Types}} | |||
Floating point data types are 32 bit numbers in IEEE-754 form. | |||
If you want a decimal point in your number, then it is a float. | |||
The Range is 1.175494351E-38 to 3.402823466E+38 | |||
They can be specified in scientific notation like 2.6E-5. | |||
If a function requires a float as a parameter, and the number is an integer (e.g. 5), be sure to add a .0 so it is created as a float (e.g. 5.0) | |||
If you are dividing 2 constants, be sure to define them as floats or your result may get rounded. Better yet, do the math on your calculator and save the server some cycles. | |||
<div id="box"> | |||
== See Also == | |||
<div style="padding: 0.5em"> | |||
'''Articles''' | |||
*LSL Examples: [[Format Decimal]] | |||
</div></div> |
Revision as of 14:04, 8 June 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Floating point data types are 32 bit numbers in IEEE-754 form. If you want a decimal point in your number, then it is a float.
The Range is 1.175494351E-38 to 3.402823466E+38
They can be specified in scientific notation like 2.6E-5.
If a function requires a float as a parameter, and the number is an integer (e.g. 5), be sure to add a .0 so it is created as a float (e.g. 5.0)
If you are dividing 2 constants, be sure to define them as floats or your result may get rounded. Better yet, do the math on your calculator and save the server some cycles.
See Also
Articles
- LSL Examples: Format Decimal
Pages in category "LSL Float"
The following 8 pages are in this category, out of 8 total.