Print Page | Close Window

Really quick question (decimal numbers)

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=9647
Printed Date: 01 April 2026 at 1:00am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Really quick question (decimal numbers)
Posted By: FLATLINE
Subject: Really quick question (decimal numbers)
Date Posted: 08 February 2004 at 6:25pm

Ya know all these converting commands like CStr, CInt, CLng etc.?

Well I need to know the command that converts to decimal numbers. I tried doing something like CDec or CReal but it didn't work.

The deal is that I'm multiplying two different numbers (both from two different fields in a database). One is long integer, and the other is decimal. When I try to multiply them, I get a "Type Mismatch" error, and that error doesn't go away until I convert the decimal number to long integer, but I NEED it to be decimal. What can I do?



-------------
Visit my site: http://darkgreen.service-club.net - DarkGreen HQ



Replies:
Posted By: ljamal
Date Posted: 08 February 2004 at 7:41pm
CDbl should do it.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming



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