On Wednesday, October 25, 2017 at 2:36:53 PM UTC+1, JJ wrote:
>How to thoroughly check if a variable contains a valid
>integer number?
> e.g. if I try to check it like this:
Firstly, define what *you* mean by "integer".
Is 1e3 an integer, value decimal 1000?
Is 077 an integer, value decimal 63?
Is 0xF an integer, value decimal 15?
Is 1.0 an integer, value 1?
Are signs + and/or - allowed?
--
(c) John Stockton, near London, UK. Using Google, no spell-check. |
Mail: J.R.""""""""@
physics.org - or as Reply-To |