Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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 July 18th, 2006, 07:05 PM
Authorized User
 
Join Date: Jun 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default function to create whole number from decimal

Hi,

I have decimal values in my database and I need to format them to display on my asp page as whole numbers. How can I do that?

thanks you.

 
Old July 18th, 2006, 08:17 PM
Authorized User
 
Join Date: Apr 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

FormatNumber(WhateverVariable, 0)

(FYI, the 0 is the number of decimal places you want)





Similar Threads
Thread Thread Starter Forum Replies Last Post
regular expression for number upto 2 decimal place swati_joshi ASP.NET 1.0 and 1.1 Basics 3 July 31st, 2008 11:23 AM
Number with 2 decimal places only pallone SQL Server 2000 4 July 3rd, 2007 07:29 AM
round up a decimal number semooth VB How-To 3 October 4th, 2005 02:33 PM
How to check if a number has a decimal snowy0 VB How-To 5 August 5th, 2004 02:38 PM
number of decimal? hosefo81 PHP How-To 1 February 11th, 2004 02:25 AM





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