QGIS/resources/function_help/format_number

17 lines
515 B
Plaintext
Raw Normal View History

2012-09-04 21:23:44 +10:00
<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) &rarr; 10,000,000.33</code>