Solved

Round up decimal VB

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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