Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 15th, 2008, 11:30 AM
Authorized User
 
Join Date: May 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Round()

Simple problem..

How do I round UP a decimal even if the decimal is less than 5?

E.g. 2.2 to become 3



Hasta Luego..
KingRoon

DogFightClothing. No dogs. No fighting.
http://www.dogfightclothing.com
__________________
Hasta Luego..
KingRoon

DogFightClothing. No dogs. No fighting.
http://www.dogfightclothing.com
 
Old September 15th, 2008, 01:17 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Code:
Function RoundUp( num )
    RoundUp = Int(num)
    If RoundUp <> num Then RoundUp = RoundUp + 1
End Function





Similar Threads
Thread Thread Starter Forum Replies Last Post
asp round crmpicco Classic ASP Basics 3 June 6th, 2005 08:47 AM
round (again) crmpicco Classic ASP Basics 1 March 17th, 2005 08:14 AM
Query Round up Freddyfred Access 1 December 17th, 2004 09:49 AM
round function help mohiddin52 Access 2 October 21st, 2004 07:14 AM
Round Paul_T SQL Server 2000 7 July 7th, 2004 02:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.