Webtags (preserving history): Difference between revisions

m
m (Text replacement - "cumuluswiki.wxforum.net" to "cumuluswiki.org")
Line 63: Line 63:
=== Input Parameter Differences between Cumulus 1 and Cumulus MX (Cumulus 3) ===
=== Input Parameter Differences between Cumulus 1 and Cumulus MX (Cumulus 3) ===


MX makes much more usage of these parameters. For example in the moon tags.
MX makes much more usage of these parameters. For example in the moon tags <#MoonAge> gives "11" but <#MoonAge dp=3> gives "11.234"
 
The biggest difference is that for Cumulus 1 there are a select number of special web tags where decimal point is forced, these are called [[#No Commas|No Commas and have a 'RC' prefix to indicate Remove Commas]]. For MX for any web tag that returns a purely numerical value in all circumstances (so excludes monthly and other tags that may return hyphens), you can add the parameter <tt>rc=y</tt> and that will force any number held internally with a comma between integer and decimal parts to change that comma into a full stop. Commas are used when decimal commas are part of the locale that Cumulus (1 or MX) is running with. However, if you use a script language like JavaScript (possibly to implement Ajax), that language  insists all numerical values use decimal point.




5,838

edits