OsMax
From OpenSimulator
(Difference between revisions)
m (Typo) |
|||
| Line 25: | Line 25: | ||
} | } | ||
} | } | ||
| − | |||
</source> | </source> | ||
| + | |additional_info=This function was added in 0.7.4-post-fixes | ||
}} | }} | ||
== See Also == | == See Also == | ||
* [[osMin]] | * [[osMin]] | ||
* [[osMax]] | * [[osMax]] | ||
Latest revision as of 16:20, 1 June 2021
float osMax(float a, float b)
| |
| Returns the larger of two numbers. Wraps to system Math.Max() | |
| Threat Level | This function does not do a threat level check |
| Permissions | Use of this function is always allowed by default |
| Extra Delay | 0 seconds |
| Example(s) | |
// // osMax Script Exemple // Author: djphil // default { state_entry() { llSay(PUBLIC_CHANNEL, "Touch to see osMax usage."); } touch_start(integer number) { float a = llFrand(10.0); float b = llFrand(10.0); llSay(PUBLIC_CHANNEL, "\nThe larger value between " + (string)a + " and " + (string)b + " is " + (string)osMax(a, b)); } } | |
| Notes | |
| This function was added in 0.7.4-post-fixes | |
[edit] See Also
- osMin
- osMax