Brad Hile wrote: > > Just wondering if anyone has a better way to work out percentage values. >... > I've tried > set the floatprecision=2 > eq=PercentAddition)/100 > > but it always returns 0.00
To avoid getting an integer result you need to introduce a non-integer. You could use: eq=PercentAddition/100.0 or eq=PercentAddition/float(100) or eq=float(PercentAddition)/100 But this won't work because the result is already an integer before you take the 'float' of it: eq=float(PercentAddition/100) -- Carl West [EMAIL PROTECTED] http://eisen.home.attbi.com I have no superfluous leisure; my stay must be stolen out of other affairs; but I will attend you awhile. - Isabella, Measure for Measure, Act 3 Scene 1 [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
