• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

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