Thread: Division / Mod
View Single Post
  #7   Spotlight this post!  
Unread 13-05-2002, 15:32
VanWEric VanWEric is offline
Registered User
#0250 (Dynamos)
 
Join Date: Feb 2002
Location: NY
Posts: 86
VanWEric is an unknown quantity at this point
No IAN NO!

doing anything with the eeprom is considerably slower than doing it mathematically. If i remember back to the CODEX meeting correctly you told us all how you reduced something to 85% of it original value with the eeprom. try saying x=x*17/20. or, if you want to do it only if it is below 127, try x = x/127*127*17/20+(127/x max 1 *x)

do the math, not the eep