Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 December 17th, 2003, 05:46 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Why do I lose 0 Zero's when calculating?

I'm trying to calculate total sales by Qty_field * Price_field into Total_field.. all fields are TEXT format. I'm doing this with a SQL statement using FrontPage.. It works find but I lose ending zero's..
Example: 2 * 25.00 = 50 NOT 50.00
         2 * 25.32 = 50.64 I dont lose the .64 here.
How can I get it to keep ending zero's?

Thanks

Kenny Bee
EasyBee Software LLC
 
Old December 18th, 2003, 12:34 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

try use jscript function parsefloat(text)

Ahmed Ali
Software Developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
User controls lose data edibusl ASP.NET 2.0 Basics 0 October 7th, 2006 09:10 AM
DTSGlobalVar lose its value in VBScript willi SQL Server DTS 2 August 29th, 2005 03:26 PM
leading zero's in text box Tee88 Javascript How-To 2 November 4th, 2004 05:06 AM
Help! At a lose: SQL and VB xgbnow Pro VB Databases 2 June 9th, 2004 10:12 PM





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