<div>Dont worry, I'm not asking you to debug a 400 line program. I am working with packed decimal numbers. The assignment calls for 2 decimal places to the right of precision. For instance 10.23 </div>
<div> </div>
<div>When you Divide Pack decimal numberes like </div>
<div>NUM1 DC PL4'22'</div>
<div>NUM2 DC PL2'3'</div>
<div> </div>
<div>DP NUM1,NUM2</div>
<div> </div>
<div>... In NUM1 there is 7C00003C the remainder is even 3 bytes making plenty of room for his other friends "the 3's" (22/7=1.3333)</div>
<div> </div>
<div>The problem is, when I use the divide pack command, the remainder is always only 1 byte. It only gives one byte of precision. Is there a precision switch or flag I need to call to get two decimal places to the right? Do I have to set something up earlier in the program to get the precision I need. I've tried multiplying the operands by 10 and 100 to induce the the fractional parts into the whole quotient of the answer, did not work, I"ve tried increasing the remainder part the operation, did not work only padded with zeros at the beginning. </div>
<div> </div>
<div>Thanks for any help you could give, if you dont know thats OK too......Why can't python turn high level statements directly into ibm system370 assembler code? Get on it would you guido ;)</div>
<div>-Jon <br><br></div>
<div class="gmail_quote">On Fri, Nov 13, 2009 at 1:43 PM, Samir Faci <span dir="ltr"><<a href="mailto:samir@esamir.com">samir@esamir.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I'm not sure I want to own up to it... but.. maybe? What's your question on?<br>
<div>
<div></div>
<div class="h5"><br><br><br>On Fri, Nov 13, 2009 at 1:33 PM, John Stoner <<a href="mailto:johnstoner2@gmail.com">johnstoner2@gmail.com</a>> wrote:<br>> I don't know it currently, but I've seen it many years ago. Integrated into<br>
> the IBM PL/x family of languages.<br>><br>> On Fri, Nov 13, 2009 at 1:25 PM, Jon Sudlow <<a href="mailto:jsudlow@gmail.com">jsudlow@gmail.com</a>> wrote:<br>>><br>>> I know this is way off topic, but do any of you know IBM system 370<br>
>> assembler language?<br>>><br>>> On Fri, Nov 13, 2009 at 10:15 AM, Chad Homan <<a href="mailto:choman@gmail.com">choman@gmail.com</a>> wrote:<br>>>><br>>>> you wouldn't be willing to ship one to omaha?<br>
>>><br>>>> If it helps to bribe, I will buy ya a beer sometime ;) maybe even at the<br>>>> omaha python meeting<br>>>><br>>>><br>>>> Chad, CISSP<br>>>><br>>>> Charles de Gaulle - "The better I get to know men, the more I find<br>
>>> myself loving dogs."<br>>>><br>>>> On Fri, Nov 13, 2009 at 6:39 AM, David Beazley <<a href="mailto:d-beazley@sbcglobal.net">d-beazley@sbcglobal.net</a>><br>>>> wrote:<br>
>>>><br>>>>> On the subject of Chad's offer to give away his Python Essential<br>>>>> Reference book, I'll just add that I probably have about 20 pristine signed<br>>>>> copies of 1st and 2nd editions sitting in my office. If someone wants one,<br>
>>>> perhaps as some kind of historical record of when Python was simpler, send<br>>>>> me an email and I'll bring a copy to the next Chipy meeting.<br>>>>><br>>>>> Cheers,<br>
>>>> Dave<br>>>>><br>>>>> _______________________________________________<br>>>>> Chicago mailing list<br>>>>> <a href="mailto:Chicago@python.org">Chicago@python.org</a><br>
>>>> <a href="http://mail.python.org/mailman/listinfo/chicago" target="_blank">http://mail.python.org/mailman/listinfo/chicago</a><br>>>><br>>>><br>>>> _______________________________________________<br>
>>> Chicago mailing list<br>>>> <a href="mailto:Chicago@python.org">Chicago@python.org</a><br>>>> <a href="http://mail.python.org/mailman/listinfo/chicago" target="_blank">http://mail.python.org/mailman/listinfo/chicago</a><br>
>>><br>>><br>>><br>>> _______________________________________________<br>>> Chicago mailing list<br>>> <a href="mailto:Chicago@python.org">Chicago@python.org</a><br>>> <a href="http://mail.python.org/mailman/listinfo/chicago" target="_blank">http://mail.python.org/mailman/listinfo/chicago</a><br>
>><br>><br>><br>><br>> --<br>> blogs:<br>> <a href="http://www.generosity.org/stoner/" target="_blank">http://www.generosity.org/stoner/</a><br>> <a href="http://boogiepants.typepad.com/" target="_blank">http://boogiepants.typepad.com/</a><br>
> 'In knowledge is power; in wisdom, humility.'<br>><br>> _______________________________________________<br>> Chicago mailing list<br>> <a href="mailto:Chicago@python.org">Chicago@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/chicago" target="_blank">http://mail.python.org/mailman/listinfo/chicago</a><br>><br>><br><br><br><br></div></div>--<br><font color="#888888">--<br>Samir Faci<br>
*insert title*<br>`fortune`<br></font>
<div>
<div></div>
<div class="h5">_______________________________________________<br>Chicago mailing list<br><a href="mailto:Chicago@python.org">Chicago@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/chicago" target="_blank">http://mail.python.org/mailman/listinfo/chicago</a><br>
</div></div></blockquote></div><br>