Print Page | Close Window

csng() vs cdbl()

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3594
Printed Date: 29 March 2026 at 11:56pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: csng() vs cdbl()
Posted By: ngaisteve1
Subject: csng() vs cdbl()
Date Posted: 17 June 2003 at 3:00am
What is the difference between csng() and cdbl()?



Replies:
Posted By: Boecky
Date Posted: 17 June 2003 at 6:43am
Use CDbl() function instead of CSng() function while dealing with real or floating point numbers in ASP. CDbl() outputs are double-precision numbers where as CSng() outputs are single-precision numbers.


Posted By: Bullschmidt
Date Posted: 18 June 2003 at 2:51am

I agree with Boecky since CDbl() can do everything that CSng() can do and more (i.e. handle larger numbers too).

As a matter of fact I don't think I've hardly ever even used the CSng() function.



-------------
J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com - www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net