On Wed 4 August 2004, 4:41:53 +1000, Michael L. Wilson wrote: > I am trying to complete the following calculation > > 100*(x/x+y) > > x = %STATSPAMLETTERS = 77 > y = %STATNONSPAMLETTERS = 185 > > Using a calculator, I get 29.389 > > I cannot get this value using The Bat! %calc macro or anything else. > How do I do this kind of math in a The Bat! Macro?
I got that result. Tested it with the following macro %_Sum=%Calc("77+185")%- %_Sum %_Quot=%Calc("77/%_sum")%- %_Quot %_Percent=%calc("100*%_quot")%- %_Percent -- Robin Anson Using The Bat! v2.12.00 on Windows XP 5.1 Build 2600 Service Pack 1 Running [EMAIL PROTECTED] (see: www.setiathome.ssl.berkeley.edu) No of SETI units returned: 306 Processing time: 1 years, 252 days, 11 hours. ________________________________________________ Current version is 2.12.00 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html