Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Round Time 1

Status
Not open for further replies.

mikeyb540

Programmer
Jul 7, 2003
173
US
Hello,

Trying to figure out how to round 45min to the nearest hour 60min. I have tried Round(45*24,0)/24

Thanks in advance.
 
[tt]Dim Minutes As Long
Minutes = 45
Minutes = ((Minutes + 30) \ 60) * 60[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top