Template talk:Ifnumber

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Ifnumber/doc)

Empty input[edit]

The template is giving a "1" if parameter 1 is blank but an empty space is not a number. Easy to fix, just use a minus sign, but do we actually want this? JIMp talk·cont 17:27, 13 February 2012 (UTC)[reply]

I have fixed this case, as it seems fully logical. Od1n (talk) 07:28, 29 November 2016 (UTC)[reply]

The character E would give the result I didn't expect[edit]

The argument {{Ifnumber | E | is a number | is not a number}} would give the following result: is not a number. I would expect the false statement to work. Thanks a lot. Would a special case checking would be sufficient? Winston (talk) 23:27, 28 December 2016 (UTC)[reply]

For further investigation {{#expr:F}} would give the following result: Expression error: Unrecognized word "f".. But {{#expr:E}} would give the following result: 2.718281828459. I guess the problem is on the expr itself but still extreme case checking would be sufficient. Winston (talk) 08:43, 1 January 2017 (UTC)[reply]
e is a mathematical constant. Like pi: {{#expr:pi}} → 3.1415926535898 (See expr). --89.25.210.104 (talk) 02:29, 23 November 2018 (UTC)[reply]
4 years later. I've added an exception for the letter "e" and it is now treated as a letter and not a number. Gonnym (talk) 09:27, 13 June 2023 (UTC)[reply]