[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] Rounding up numbers inside [calc]
****** message to minivend-users from "Curt Hauge" <chc@mninter.net> ******
Tal,
I am not sure of the exact syntax to use in minivend, but i have used this
idea in other programs. You first take the number (45.336473828) and
multiply it by 100 (4533.6473828), then round it off using INT, then divide
by 100 - that's it!
Curt
-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Tal Hart (TelNET)
Sent: Sunday, March 26, 2000 8:31 AM
To: minivend-users@minivend.com
Subject: [mv] Rounding up numbers inside [calc]
****** message to minivend-users from "Tal Hart (TelNET)"
<tal@telnet.co.il> ******
I would like to round up the result of a [calc] operation to display only 2
digits after the decimal point,
I.E. instead of showing 45.336473828 i want it to display 45.33
I know the INT command, which round up to the full number,
but how can i ask it to keep X digits after the point ???
Tal Hart
=============================================================
TelNET Communication
Tel # + 972-9-8859919 Fax # +972-9-88598929
Address : Office - 10 giborey israel, New industrial area,Netanya
Post Adress : 2 Gur st. , Ramat Poleg , Netanya , ISRAEL , 42000
E-mail : tal@telnet.co.il Web : www.telnet.co.il
=============================================================
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list