?
Solved

Round up decimal VB

Posted on 2014-03-11
4
Medium Priority
?
224 Views
Last Modified: 2014-03-11
How can I round up a decimal in VB

Eg

Label1.Text = (APR ^ 12 - 1)  


Shows


9.59793002987339


I'd like to show this  as

9.6%
0
Comment
Question by:Ed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 39921194
Math.Round(value, 1)
0
 

Author Comment

by:Ed
ID: 39921242
Thanks

but  

Label1.Text = Math.Round((APR ^ 12 - 1), 1)


gives the result  of  0.1
0
 

Author Comment

by:Ed
ID: 39921368
sorry, me being a tool.

        Label1.Text = Math.Round(FinalAPR, 1)


That answer was correct, works now.
0
 

Author Closing Comment

by:Ed
ID: 39921371
perfect
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question