Template:Valid/docEdit This Page
From FamilySearch Wiki
|
|
This is a documentation subpage for Template:Valid (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Purpose
Determines whether something is valid in a certain context. Currently only implemented for determining if a number is within the precision that expressions can handle.
Returns
true if the argument is valid, false if it is not.
Examples
{{valid|number=A}}= false (not a number){{valid|number=1234}}= true{{valid|number=+1234}}= true{{valid|number=-1234}}= true{{valid|number=(1234)}}= true (one pair of parenthesis is allowed){{valid|number=--1234}}= false (incorrect sign use){{valid|number=1234567890}}= true{{valid|number=12345678901234567890}}= false (too large){{valid|number=1.234567890}}= true{{valid|number=1.2345678901234567890}}= false (too many decimals)
- This page was last modified on 10 January 2011, at 17:20.
- This page has been accessed 52 times.
New to the Research Wiki?
In the FamilySearch Research Wiki, you can learn how to do genealogical research or share your knowledge with others.
Learn More