Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Modulo for Decimals 1999-02-24 -- Alexey Solovjev Modulo arithmetic on non-integers converts internally to a Real. This can result in
rounding errors. Thus, % can return false positives with decimals.
DecModulus PROCEDURE (*DECIMAL A, *DECIMAL B, *DECIMAL Res)
CODE
Res = A % B
IF Res = B
Res = 0
END
RETURN
Today is December 3, 2024, 11:54 am This article has been viewed 35206 times.
|
|