View Single Post
Old 04-26-2007, 12:54 PM   #4 (permalink)
ShadyCraig
Recruit
 
Join Date: Sep 2005
Location: Loughborough, England, UK
Posts: 12
ShadyCraig is on a distinguished road
according to this source pow() returns a double:
C Guide--2.7 math.h

if you really don't want to use a double then maybe you could cast the returned variable to a ULONG?
a += i+(300*(ULONG)pow(2,(i/7)));
ShadyCraig is offline   Reply With Quote