1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Updated description for "stepify"

Mentioned the possibility to use stepify as a rounding function; +code examples
This commit is contained in:
Thomas Karcher
2019-08-29 14:03:18 +02:00
committed by GitHub
parent 9762372329
commit 02ed79f7f7

View File

@@ -1115,7 +1115,11 @@
<argument index="1" name="step" type="float"> <argument index="1" name="step" type="float">
</argument> </argument>
<description> <description>
Snaps float value [code]s[/code] to a given [code]step[/code]. Snaps float value [code]s[/code] to a given [code]step[/code]. This can also be used to round a floating point number to an arbitrary number of decimals.
[codeblock]
stepify(100, 32) # Returns 96
stepify(3.14159, 0.01) # Returns 3.14
[/codeblock]
</description> </description>
</method> </method>
<method name="str" qualifiers="vararg"> <method name="str" qualifiers="vararg">