diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-29 15:12:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 15:12:16 +0200 |
commit | 46471a8d697527127eb2d76b570539dc0eb2f044 (patch) | |
tree | 88eb407e873363a926044e43580ce47f95434257 | |
parent | 9762372329253a5d89feac7705770eb2f8e0cc04 (diff) | |
parent | 02ed79f7f7de99bc7dd2622fd44d17d658843026 (diff) |
Merge pull request #31764 from t-karcher/patch-2
Updated description for "stepify"
-rw-r--r-- | modules/gdscript/doc_classes/@GDScript.xml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index ad47323613..605a999d6a 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -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"> |