View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
Rowan Drummond[_3_] Rowan Drummond[_3_] is offline
external usenet poster
 
Posts: 414
Default Not rounding numbers in VBA

You're welcome.

serdar wrote:
ahhh..sorry i knew it from C. thanks very much.

"Rowan Drummond" , haber iletisinde sunlari
...

Long is short for "long integer" so it will store whole numbers only which
is why this is getting rounded up to 4. Change you data type to Single or
Double.

Hope this helps
Rowan