Difference between revisions of "LlFloor"
Jump to navigation
Jump to search
Gigs Taggart (talk | contribs) m (LSL llFloor moved to LlFloor) |
|||
Line 6: | Line 6: | ||
|func_energy=10.0 | |func_energy=10.0 | ||
|func_footnote | |func_footnote | ||
|p1_type=float | |p1_type=float|p1_name=val|p1_desc=Any valid float value | ||
|p1_name=val | |||
|p1_desc=Any valid float value | |||
|return_type=float | |return_type=float | ||
|return_text=that is the integer value of val rounded towards negative infinity (return <= val). | |return_text=that is the integer value of '''val''' rounded towards negative infinity (return <= '''val'''). | ||
|spec | |spec | ||
|caveats | |caveats | ||
|examples= | |examples=<pre> | ||
< | |||
default { | default { | ||
state_entry() | state_entry() | ||
Line 32: | Line 18: | ||
} | } | ||
} | } | ||
</ | </pre> | ||
|helpers | |helpers | ||
|also_functions= | |also_functions={{{!}} | ||
{{LSL DefineRow||[[llRound]]|Rounds the float to an integer towards the closest integer}} | |||
{{LSL DefineRow||[[llCeil]]|Rounds the float to an integer towards positive infinity}} | |||
{{!}}} | |||
|notes | |notes | ||
|cat1=Math | |||
|cat2 | |||
|cat3 | |||
|cat4 | |||
}} | }} | ||
Revision as of 14:16, 22 February 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llFloor( float val );9 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float that is the integer value of val rounded towards negative infinity (return <= val).
• float | val | – | Any valid float value |
Caveats
Examples
default { state_entry() { llSay(0,"The floor value of -4.5 is: "+(string)llFloor(-4.5) ); } }