Merge pull request #31764 from t-karcher/patch-2

Updated description for "stepify"
This commit is contained in:
Rémi Verschelde 2019-08-29 15:12:16 +02:00 committed by GitHub
commit 46471a8d69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1115,7 +1115,11 @@
<argument index="1" name="step" type="float">
</argument>
<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>
</method>
<method name="str" qualifiers="vararg">