• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

VB Script Round Function is not functioning correctly.

Hi Experts,

In vb script I have sent an arithmetic expression which is divisible by 2 is not rounding correctly : eg;
"Eval" functions return 80 for expression 80.5 but it should be rounded to next number.
how can this be achieved

I have tried evaluating following expression but it also throws error :

Val(Format((( 23 + 24 + 22 + 18 + 21 + 23 + 21 + 23 ) /2.0 ) ,"0") )

Thanks.
0
AmitJain001
Asked:
AmitJain001
1 Solution
 
Jacques Bourgeois (James Burger)PresidentCommented:
.NET and VBScript are different things.

You should post in another topic.
0
 
AmitJain001Author Commented:
thnx JamesBurger, I have raised it under another topic now.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now