[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

686.0. "calculator -- using percent (%) = ??" by NEXUS::B_BRADACH () Wed Apr 26 1989 17:09

    I have a customer with a problem using the calculator.
    He enters the folowing sequence:
    
    	40 * 7.25% + 40
    
    This results in 156
    If you enter 40 * 7.25% the accumulator shows 2.9, when you then
    press the + key the accumulator show 116, which is then added to
    the 40 resulting in 156.  Is this a malfunction in the calculator
    or what???
    
    thanks for any information
    
    bernie
    

T.RTitleUserPersonal
Name
DateLines
686.1right answer; wrong problemSTAR::BRANDENBERGSi vis pacem para bellumWed Apr 26 1989 17:175
    
    Try  "40 + 7.25 % ="
    
    					-m

686.2thanks -- do you know why?NEXUS::B_BRADACHThu Apr 27 1989 13:046
    thanks, for the quick response.  Can shed any light on why it won't
    work the other way?
    
    bernie
    

686.3STAR::BRANDENBERGSi vis pacem para bellumThu Apr 27 1989 13:356
    
    That's simply how '%' works on any infix calculator.  Think of it as
    the sequence: "multiply second operator argument by first operator
    argument, divide by 100 and replace second operator argument with this
    value."