As a VBS newbe I am trying to create a calculation witch needs to result in
a two digit decimal notation like: 11.90
I keep getting results like: 11.90423 or 11.9

Can anyone please help me solve this problem?

Thanks a lot!

Casper

Re: How can I calculate with currencies/money values? by Peter

Peter
Mon Feb 09 05:46:33 CST 2004

Hi Casper

Try:
A1 = 11.90423
FormatNumber(A1, 2)
or
FormatCurrency(A1, 2)

Check out the VBScript online help for more info.

HTH + Cheers - Peter


"nieuws" <nieuws@nieuws.nl> wrote in news:40276ab6$1$1077
$e4fe514c@dreader15.news.xs4all.nl:

> As a VBS newbe I am trying to create a calculation witch needs to result in
> a two digit decimal notation like: 11.90
> I keep getting results like: 11.90423 or 11.9
>
> Can anyone please help me solve this problem?
>
> Thanks a lot!
>
> Casper
>
>
>