1,651
edits
Line 139: | Line 139: | ||
[[File:Badge vMx.png]]From release 3.12.0, you can set the default number of decimal places to output for all derivatives of temperature, pressure, etc. by [[Cumulus.ini#Units.2C_Derivative_Options.2C_and_Decimal_Places|advanced settings]]. Those settings can force output as integers, in which case the parameter for controlling number of decimal places have no effect. | [[File:Badge vMx.png]]From release 3.12.0, you can set the default number of decimal places to output for all derivatives of temperature, pressure, etc. by [[Cumulus.ini#Units.2C_Derivative_Options.2C_and_Decimal_Places|advanced settings]]. Those settings can force output as integers, in which case the parameter for controlling number of decimal places have no effect. | ||
===Two Output (format modifier) parameters for decimal places=== | ==== Two Output (format modifier) parameters for decimal places ==== | ||
Depending on tag name and release you are using, there may be two ways to control decimal places: | Depending on tag name and release you are using, there may be two ways to control decimal places: | ||
Line 145: | Line 145: | ||
* <tt><#tag_name tc=y></tt> | * <tt><#tag_name tc=y></tt> | ||
====Rounding to a | ===== Rounding to a number of decimal places ===== | ||
Use <tt>dp=i</tt> (the value '''i''' following the attribute '''dp''' is an integer, it represents how many decimal places you want for the output you see): | Use <tt>dp=i</tt> (the value '''i''' following the attribute '''dp''' is an integer, it represents how many decimal places you want for the output you see): | ||
Line 156: | Line 156: | ||
*# From release 3.10.5 (which did a big rewrite of web tag handling) any tag names that output as real numbers | *# From release 3.10.5 (which did a big rewrite of web tag handling) any tag names that output as real numbers | ||
====Truncation of unwanted decimal places==== | ===== Truncation of unwanted decimal places ===== | ||
<tt>tc=y</tt> is the truncation parameter, the attribute '''tc''' takes the value 'y' to remove decimal places by truncation. e.g. <#MoonAge tc=y>. | <tt>tc=y</tt> is the truncation parameter, the attribute '''tc''' takes the value 'y' to remove decimal places by truncation. e.g. <#MoonAge tc=y>. |