Interviewer And Interviewee Guide

IBM Assembler Interview Question:

How do you round the addition or subtraction of two numbers in assembler?
What does the following code do?
AP WKUR,=P5 where WKUR is a label?

Submitted by: Administrator
This is a vague two-part question.
1) You can round by adding .5
2) Adds 5 to WKUR, but it had better be a valid packed field, and not just a label.
Submitted by: Administrator

3) Adding 5 only rounds if the precision of the number in WKUR is in the correct UNIT. 1+5 rounds to the 10s postion not the 1s position (assuming no implied decimal point).
Submitted by: Howy61

Read Online IBM Assembler Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.