×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On 2025-06-18 11:18 a.m., Marco Facchinetti wrote:
I guess %INT usually works but I found a note in a procedure we use to
handle rounding that state: Use %INTH.
Dcl-s intnbr int(20);
intnbr = %inth(xqta * (10 ** xnbrdec));
+1 to using %inth (or %dech) to get out of float. It's possible that the
float value for 10 ** xnbrdec is say 99.99999999999999999999999 instead
of 100, and %int would return 99.
It's usually better to get out of float as soon as possible, so I think
it's better to do the %inth on the ** result.
intnbr = (xqta * %inth(10 ** xnbrdec));
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.