-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<h3>$scale function</h3> | ||
Returns the current scale of the map canvas. | ||
<br> | ||
Note: This function is only available in some contexts and will be 0 otherwise. | ||
<h4>Syntax</h4> | ||
<code>$scale</code><br> | ||
|
||
<h4>Example</h4> | ||
<!-- Show example of function.--> | ||
<code>$scale → 10000</code><br> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<h3>format_number() function</h3> | ||
Returns a number formatted with the locale separator for thousands. | ||
Also truncates the number to the number of supplied places. | ||
<h4>Syntax</h4> | ||
<code>format_number(number,places)</code><br> | ||
|
||
<h4>Arguments</h4> | ||
<code>number</code> - is number. The number to be formatted. | ||
<br> | ||
<code>places</code> - is int. The number of decimal places to truncate the string | ||
to. | ||
|
||
<h4>Example</h4> | ||
<!-- Show example of function.--> | ||
<code>format_number(10000000.332,2) → 10,000,000.33</code> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<h3>round() function</h3> | ||
Rounds a number to number of decimal places. | ||
<br> | ||
This function can take one or two arguments depending on what is needed. | ||
<h4>Syntax</h4> | ||
<code>round(decimal,places)</code><br> | ||
<code>round(decimal)</code><br> | ||
|
||
<h4>Arguments</h4> | ||
<code>decimal</code> - is decimal. The decimal number to be rounded. | ||
<br> | ||
<code>places</code> - is int. The number of places to round decimal too. Can be negative. | ||
|
||
<h4>Example</h4> | ||
<!-- Show example of function.--> | ||
<code>round(1234.567, 2 ) → 1234.57</code><br> | ||
use <code>round(decimal)</code> to round to the nearest integer<br> | ||
<code>round(1234.567) → 1235</code><br> | ||
|
||
|