Peter,

Try NewNum=INT((OldNum*1000)+0.5)/1000

Dave

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Petre Kounov
Sent: Saturday, June 24, 2000 11:13 AM
To: 'SmartCam user group'
Subject: [mfg-smartcam] Macro question



Hi all,
Is there a way to round an expression to 3 decimal places in a macro.
For example , if variable #a=0.5676 I would like to have a 0.568
for further calculations..
Thanks in advance,
Peter


======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to