Stop Microsoft
Miscellaneous => Programming & Networking => Topic started by: Fett101 on 24 February 2004, 07:15
-
Doing this thing to calculate the number of seconds since a given year using int and then float. They're both giving me different numbers.
Gives 31536000 like it should.
gives me 13184.
Perhaps it's just the data type limitation, but I coulda sworn int's could hold larger numbers...
-
NM. Is the data type. Thanks for coming. Have a safe drive home.
-
Nice
-
Actually either should work. The maximum value of a 32 bit integer is about 2 billion.
-
I changed it to a long an it works fine now.
-
Are you using a 16-bit compiler?
-
Yes. Really old POC.