[thelist] rounding left of the decimal with VBScript

Craig cd-ml at aardvark.net.au
Thu Sep 25 11:25:14 CDT 2003


for 32.1 and 54.3 to 32 and 54, have you tried:
Math.round(number)

for 32.1 and 54.3 to 30 and 50:
TheNumber = left(strNumber, 1) & "0"

Craig.

----- Original Message ----- 
From: "Joel D Canfield" <joel at spinhead.com>
To: <thelist at lists.evolt.org>
Sent: Friday, September 26, 2003 12:07 AM
Subject: [thelist] rounding left of the decimal with VBScript


Just can't find this, and using negative numbers doesn't work: how do I
round 32.1 and 54.3 to 32 and 54 or 30 and 50 with VBScript?

spinhead



More information about the thelist mailing list