Difference between revisions of "LlCeil"
Jump to navigation
Jump to search
Gigs Taggart (talk | contribs) m (LSL llCeil moved to LlCeil) |
|||
Line 1: | Line 1: | ||
{{LSL_Function | {{LSL_Function | ||
|func=llCeil | |func=llCeil | ||
|func_id=10|func_sleep=0.0|func_energy=10.0 | |||
|func_id=10 | |||
|func_sleep=0.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 positive infinity (return >= val). | |return_text=that is the integer value of val rounded towards positive infinity (return >= val). | ||
|spec | |spec | ||
|caveats | |caveats | ||
|examples= | |examples=<pre> | ||
< | |||
default { | default { | ||
state_entry() | state_entry() | ||
Line 32: | Line 15: | ||
} | } | ||
} | } | ||
</ | </pre> | ||
|helpers | |helpers | ||
|also_functions= | |constants | ||
|also_tests | |||
|also_events | |||
|also_articles | |||
|also_functions={{{!}} | |||
{{LSL DefineRow||[[llRound]]|Rounds the float to an integer towards the closest integer}} | |||
{{LSL DefineRow||[[llFloor]]|Rounds the float to an integer towards negative infinity}} | |||
{{!}}} | |||
|notes | |notes | ||
|cat1=Math | |||
|cat2 | |||
|cat3 | |||
|cat4 | |||
}} | }} | ||
Revision as of 14:20, 22 February 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llCeil( float val );10 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float that is the integer value of val rounded towards positive infinity (return >= val).
• float | val | – | Any valid float value |
Caveats
Examples
default { state_entry() { llSay(0,"The ceil value of -4.5 is: "+(string)llCeil(-4.5) ); } }