diff --git a/resources/function_help/$scale-en_US b/resources/function_help/$scale-en_US new file mode 100644 index 00000000000..412087086ac --- /dev/null +++ b/resources/function_help/$scale-en_US @@ -0,0 +1,12 @@ +

$scale function

+Returns the current scale of the map canvas. +
+Note: This function is only available in some contexts and will be 0 otherwise. +

Syntax

+$scale
+ +

Example

+ +$scale → 10000
+ + diff --git a/resources/function_help/format_number-en_US b/resources/function_help/format_number-en_US new file mode 100644 index 00000000000..ccee708c48a --- /dev/null +++ b/resources/function_help/format_number-en_US @@ -0,0 +1,16 @@ +

format_number() function

+Returns a number formatted with the locale separator for thousands. +Also truncates the number to the number of supplied places. +

Syntax

+format_number(number,places)
+ +

Arguments

+number - is number. The number to be formatted. +
+places - is int. The number of decimal places to truncate the string +to. + +

Example

+ +format_number(10000000.332,2) → 10,000,000.33 + diff --git a/resources/function_help/round-en_US b/resources/function_help/round-en_US new file mode 100644 index 00000000000..0f101b23cc4 --- /dev/null +++ b/resources/function_help/round-en_US @@ -0,0 +1,20 @@ +

round() function

+Rounds a number to number of decimal places. +
+This function can take one or two arguments depending on what is needed. +

Syntax

+round(decimal,places)
+round(decimal)
+ +

Arguments

+decimal - is decimal. The decimal number to be rounded. +
+places - is int. The number of places to round decimal too. Can be negative. + +

Example

+ +round(1234.567, 2 ) → 1234.57
+use round(decimal) to round to the nearest integer
+round(1234.567) → 1235
+ +