mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
17 lines
515 B
Plaintext
17 lines
515 B
Plaintext
|
<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>
|
||
|
|