Abs - Math: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Ashes
No edit summary
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
float Function abs(float afValue) native global
float Function abs(float afValue) native global
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 18: Line 18:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
float x = math.abs(5.0) ; x == 5
float x = math.abs(5.0) ; x == 5
float y = math.abs(-5.0) ; y == 5
float y = math.abs(-5.0) ; y == 5
</source>
</syntaxhighlight>


== See Also ==
== See Also ==
*[[Math Script]]
*[[Math Script]]

Navigation menu