Solved

Round up decimal VB

Posted on 2014-03-11
4
208 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Calling web service and its methods dynamically 2 43
Data is not showing from images 15 38
Angular JS Route 3 54
Error in JQuery 5 39
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 …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

25 Experts available now in Live!

Get 1:1 Help Now