If life should ever punish you by challenging you to round up decimals by a quarter of an hour – always up and never down – here’s a liferaft

In a scenario where you wish for 2.04 to be rounded up to 2.25 instead of down to 2.00:

This solution is based on the solution posted in 2001 on VBForums – props to original poster MartinLiss!

http://www.vbforums.com/showthread.php?64997-Rounding-to-nearest-25&s=c6a62b3deef741b3d7aaf8d10e8a9032&p=292208&viewfull=1#post292208

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.