Search the web
Sign In
New User? Sign Up
z390-assembler-contest · z390 Mainframe Assembler Coding Contest
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ZMFACC Assembler Coding Contest - new problem #13 - calculating unit   Message List  
Reply | Forward Message #44 of 70 |

Given a decimal number with 2 decimal places representing the total cost of an item and another decimal number representing the quantify, calculate the unit price with 2 decimal places rounded half up?  Problem was derived from question posted on IBM Mainframe Assembler-List by Ludmila Koganer.

 

I think the most straight forward solution using the least instructions may be done using the new Decimal Floating Point (DFP) instructions.  However the most efficient may be done using basic packed decimal instructions and no floating point instructions.  For more information on ZMFACC problems and solutions visit the web site here:

 

http://z390.sourceforge.net/z390_Mainframe_Assemble_Coding_Contest.htm

 

Don Higgins

mailto:don@...

http://don.higgins.net

 



Thu Jan 24, 2008 6:33 pm

dsh33782
Offline Offline
Send Email Send Email

Forward
Message #44 of 70 |
Expand Messages Author Sort by Date

Given a decimal number with 2 decimal places representing the total cost of an item and another decimal number representing the quantify, calculate the unit...
Don Higgins
dsh33782
Offline Send Email
Jan 24, 2008
6:48 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help