I have found a code where in IF condition 0! compared to the user entered value. I tried with '0!' value in immediate window and it is returning 0 only.
So, I want to to know what '!' sign exactly for??
Thanks in advance.
I have found a code where in IF condition 0! compared to the user entered value. I tried with '0!' value in immediate window and it is returning 0 only.
So, I want to to know what '!' sign exactly for??
Thanks in advance.
http://msdn.microsoft.com/en-us/library/s9cz43ek(v=vs.80).aspx
It forces the type of the literal 0 to be Single.
See also: http://msdn.microsoft.com/en-us/library/dzy06xhf.aspx about appended type characters.
0! indicates it is a floating point number (Single) instead of an integer.
typeOf 0! is Single
typeOf 0 is Integer