Template talk:Ifnumber
Appearance
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)
- I have fixed this case, as it seems fully logical. Od1n (talk) 07:28, 29 November 2016 (UTC)
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)
- 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)
- e is a mathematical constant. Like pi:
{{#expr:pi}}
→ 3.1415926535898 (See expr). --89.25.210.104 (talk) 02:29, 23 November 2018 (UTC)- 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)
- e is a mathematical constant. Like pi: