View Single Post
Old 06-09-2008, 10:24 PM   #240 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
Quote:
Originally Posted by Yoshi View Post
It becomes more than 32bit, or more than the unsigned long range.
Thanks much for confirming the overflow. Any thoughts you'd be willing to share on the trip vs instant mpg discrepancy? Or better yet, a generic way to multiply and divide 32 bit numbers while not overflowing but retaining max resolution (without a bunch of "if" statements)?
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote