ceil, floor & round commands

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6503 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-06-05 14:27:14 +00:00
parent e17e881162
commit ca47d519d9
3 changed files with 35 additions and 0 deletions
+24
View File
@@ -378,6 +378,30 @@
<return token="R" description="The random value" valueNotes="larger or equal 0 and smaller than A"/>
</command>
<command name="round">
<description>Round the given float</description>
<arguments>
<argument token="F" description="The float number to round" valueNotes=""/>
</arguments>
<return token="I" description="The rounded integer" valueNotes="The precision is 1 unit"/>
</command>
<command name="ceil">
<description>Upper value of a float number</description>
<arguments>
<argument token="F" description="The float number to get the ceil from" valueNotes=""/>
</arguments>
<return token="I" description="The ceil value (integer)"/>
</command>
<command name="floor">
<description>Floor value of a float number</description>
<arguments>
<argument token="F" description="The float number to get the floor from" valueNotes=""/>
</arguments>
<return token="I" description="The floor value (integer)"/>
</command>
<command name="strcmp">
<description>Determines if two strings are equal.</description>
<examples>