Solved

Round up decimal VB

Posted on 2014-03-11
4
205 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:edjones1
  • 3
4 Comments
 
LVL 58

Accepted Solution

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

Author Comment

by:edjones1
ID: 39921242
Thanks

but  

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


gives the result  of  0.1
0
 

Author Comment

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

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


That answer was correct, works now.
0
 

Author Closing Comment

by:edjones1
ID: 39921371
perfect
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now