View Single Post
Old 11-30-2003, 05:32 PM  
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,251
Quote:
Originally posted by fusionx
Any idea how it works? I'm trying to derive an algorithm that explains it and can't get it
It's not that difficult... When you multiply the first 3 digits by 80 and then by 250, you've basically got your XXX number to XXX0000 (because you'll divide by 2 later). You've also added 1 to the second result and multiplied that by 250, and then later subtracted 250, negating that. The adding your last 4 digits twice was negated by dividing by 2 at the end as well.
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote