Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Convert $4.58 from text box into Decimal

Reply
Thread Tools

Convert $4.58 from text box into Decimal

 
 
culam
Guest
Posts: n/a
 
      12-13-2003
I have a webapp that allows user to enter amount in the
textbox then insert or update into SQL Server database as
decimal(13,4). I can update other fields OK, except this
currency field.
Is there a function I can convert $4.58 from text box into
decimal.

Thanks,
Lam

 
Reply With Quote
 
 
 
 
Don Grover
Guest
Posts: n/a
 
      12-13-2003
Try

? formatNumber("$23.56")
23.56


"culam" <(E-Mail Removed)> wrote in message
news:043701c3c115$ae6feab0$(E-Mail Removed)...
> I have a webapp that allows user to enter amount in the
> textbox then insert or update into SQL Server database as
> decimal(13,4). I can update other fields OK, except this
> currency field.
> Is there a function I can convert $4.58 from text box into
> decimal.
>
> Thanks,
> Lam
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
how to convert from Decimal('1.23456789') to Decimal('1.234') valpa Python 11 03-24-2009 07:11 AM
Error: Cannot convert Decimal("0.0000") to Decimal Vitaliy Python 1 05-29-2008 10:36 AM
Convert currency formated string back into decimal =?Utf-8?B?R3JlZyBH?= ASP .Net 1 11-03-2007 04:48 PM
convert a binary into decimal QQ C Programming 4 03-23-2006 05:00 AM



Advertisments