Some thoughts/questions...
Is there any way to use a lookup table to simplify the math?
Are the input values limited to specific values or a limited range?
What kind of rounding/truncation are you using? http://en.wikipedia.org/wiki/Rounding
My gut says that some sort of a custom fixed point implementation might be the best course of action. For example, when dealing with money, it's often easiest to work in cents, using an implied decimal point rather than working with dollars and fractional dollars.
GroovyMAME support forum on BYOAC
|