Re: Floting Point problem
The '!' suffix indicates a variable is a Single, or a Constant which behaves as a Single. It is recognised by vb6.
Re: Floting Point problem
The ! is for a Single (32-bit binary floating point) and % is for Integer (16 bit signed Integer).
In some expressions the VB6 IDE will drop these type-suffix symbols from literal values (like 2!), though more often the % than the ! symbol. If you are lucky this will preserve the original intent, which was to force coercion of of intermediate values.
It is always best to use explicit conversion functions such as CSng() or CInt() though most of those Integers are subscripts as far as I can winkle out from your code fragment. Some might be function arguments though, there isn't enough code shown to be sure.
Re: Floting Point problem
Thank U for giving me a prompt reply.
I will check in my code it self to know why i am not getting the expected result?
Thanks ones