TIP: Click on subject to list as thread! ANSI
echo: paradox
to: MICHAEL RHODES
from: LANCE LEONARD
date: 1995-05-25 11:23:00
subject: PDOXWIN 5.0 MATH QUESTION

Michael,
 
 MR> Can someone out there help me? I have several fields in a form and 
 MR> report which calculate (straight addition of some fields multiplied by 
 MR> 15% [or .15]) other number fields. I need for them to round DOWN to the 
 MR> nearest whole number, regardless of the answer, but they, like any good 
 MR> mathematician, round UP if the calculation is X.5 or higher. Can I 
 MR> override this.  I use PDOXWIN 5.0.
You can't override the built-in behavior of the round() function, but the
truncate() will remove the decimal portion.  
Hope this helps...
 
-- Lance
--- Maximus 2.02
---------------
* Origin: Mountain Retreat (1:216/506)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.