From 620ec4703fa8790ac01a8c1e05212d85776cf9b9 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Thu, 25 Oct 2018 20:20:20 -0400 Subject: Make "decimal" functions more consistent In GDScript, rename "decimals" to "step_decimals". In C#, add "StepDecimals", but keep the old functionality in a method called "DecimalCount". --- doc/classes/@GDScript.xml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml index 22834a4c81..2f7f05b2e4 100644 --- a/doc/classes/@GDScript.xml +++ b/doc/classes/@GDScript.xml @@ -264,11 +264,7 @@ - Returns the position of the first non-zero digit, after the decimal point. - [codeblock] - # n is 2 - n = decimals(0.035) - [/codeblock] + Deprecated alias for "[method step_decimals]". @@ -1023,6 +1019,23 @@ [/codeblock] + + + + + + + Returns the position of the first non-zero digit, after the decimal point. + [codeblock] + # n is 0 + n = step_decimals(5) + # n is 4 + n = step_decimals(1.0005) + # n is 9 + n = step_decimals(0.000000005) + [/codeblock] + + -- cgit v1.2.3