Bysen:Gifrim
Appearance
Usage
[adihtan fruman]Returns 1 if the value is numeric and 0 otherwise.
Bȳsna
[adihtan fruman]
| code | result |
|---|---|
{{Gifrim|1}} |
1 |
{{Gifrim|an}} |
0 |
{{Gifrim|}} |
0 |
{{Gifrim|e<>pi}} |
1 |
{{Gifrim|1|a number|not a number}} |
a number |
{{Gifrim|one|a number|not a number}} |
not a number |
{{Gifrim|1000|a number|not a number}} |
a number |
{{Gifrim|10.00|a number|not a number}} |
a number |
{{Gifrim|1,000|a number|not a number}} |
not a number |
{{Gifrim|1,000.50|a number|not a number}} |
not a number |
{{Gifrim|99 balloons|a number|not a number}} |
not a number |
{{Gifrim|99.9999e10|a number|not a number}} |
a number |
{{Gifrim|−123|a number|not a number}} |
a number |
{{Gifrim|(456)|a number|not a number}} |
a number |
{{Gifrim|e|a number|not a number}} |
not a number |
{{Ifnumber|{{val|123|5}}|number|value "{{val|123|5}}" not numeric}} |
value "Bysen:Val" not numeric |
Notes
[adihtan fruman]This template will not recognize formatted numbers, which is by design since formatted numbers will break expression parsers. To remove the formatting from a number, you can wrap the number first in {{formatnum: number |R}}.
| code | result |
|---|---|
{{Gifrim|1,000.50|a number|not a number}} |
not a number |
{{Gifrim|{{formatnum:1,000.50|R}}|a number|not a number}} |
a number |
See also
[adihtan fruman]- {{isnumeric}}
| The above documentation is transcluded from Bysen:Gifrim/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |