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 November 26th, 2007, 04:49 PM
Registered User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem converting from string to decimal

Hi
I got a asp page in which one of the text field is taking a decimal value.In the database it is given as a float datatype.But since now some users are giving values like 123.0333.000 i wanted to eliminate all '.' points and send it as a numeric value to the table.so i used the replace function.but when i am using that,the value 0 is getting inserted instead of the real value.I tried the same codes in a new page i created.But there it is working perfectly.Can anyone help me with some suggestions?
Thanks

 
Old November 29th, 2007, 07:00 PM
Authorized User
 
Join Date: Sep 2007
Posts: 56
Thanks: 0
Thanked 1 Time in 1 Post
Default

What does your replace function code look like?

http://mynameissteve.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem converting string to Date. akhilhp ASP.NET 2.0 Basics 2 July 6th, 2008 08:02 AM
Decimal to String ?!? TPP XSLT 1 January 18th, 2007 12:08 PM
decimal string to binary se7ss C# 5 July 19th, 2004 02:52 PM
Converting a string to a number steve456 Javascript How-To 2 November 17th, 2003 06:01 PM





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