1,635
edits
Line 95: | Line 95: | ||
# The majority of tag names have a default output if there is no output format modifier, but accept either one or two output format parameters, allowing you to change what they output. | # The majority of tag names have a default output if there is no output format modifier, but accept either one or two output format parameters, allowing you to change what they output. | ||
= | == Description of Output modification parameters == | ||
The output format for numbers and dates is ruled by the international settings (Windows) or locale settings (Linux). These settings are hereafter named the locale or locale settings. So if you want to have other formats for numbers and dates than you are seeing in your website or your reports, than your first step should be to check and possibly reconsider your locale. Beside that you must know that javascript does not handle a comma as decimal seperator. So if you wish to see a comma as decimal separator you probably must take some special precautions. | |||
=== Changing the decimal separator === | |||
CumulusMX never uses a comma for separating off thousands, and there is no way to make it output numbers above 999 with a space or comma to separate out thousands. | |||
If the tag name represents a real number with integer and decimal parts, then Cumulus by default will output that number using whatever your locale defines as the separator character (decimal comma or decimal point). The legacy Cumulus 1 provided a few derivatives where a prefix of "RC" before tag name as in <code><#RCtag_name></code> could force the output to use a decimal point (regardless of locale), that option remains available in CumulusMX for backward compatibility. | |||
The current possibilities are: | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
Line 127: | Line 123: | ||
=== Controlling the number of decimal places === | |||
==Controlling the number of decimal places== | |||
If the tag name represents a real number (with both integer and decimal parts) then there are a number of ways to control the number of decimal places: | If the tag name represents a real number (with both integer and decimal parts) then there are a number of ways to control the number of decimal places: |