Link to home
Start Free TrialLog in
Avatar of Ed
EdFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Round up decimal VB

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%
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ed

ASKER

Thanks

but  

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


gives the result  of  0.1
Avatar of Ed

ASKER

sorry, me being a tool.

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


That answer was correct, works now.
Avatar of Ed

ASKER

perfect