peternilsson42 wrote: > Thomas Hruska <thru...@...> wrote: >> You could also use unsigned long long int and %llu (minimum >> of 64-bits, which will be more accurate than 'float' or >> 'double'). The following is worth keeping around as well >> for future reference: >> >> <http://cubicspot.blogspot.com/2009/03/unsigned-long-long-long-long-long-int.html> > > "Thankfully 'float' and 'double' use the IEEE floating point > standard." > > That is not a requirement of either C or C++.
You're right. Post updated. > "The lack of being able to declare how many bits/bytes we > need for integer representation is silly and only going > to get sillier as int sizes get larger." etc... > > Have you heard of <stdint.h>? I didn't know of stdint.h. <slight embarrassment: +1> Post updated. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
