Convert $4.58 from text box into Decimal

Discussion in 'ASP General' started by culam, Dec 13, 2003.

  1. culam

    culam Guest

    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
    culam, Dec 13, 2003
    #1
    1. Advertising

  2. culam

    Don Grover Guest

    Try

    ? formatNumber("$23.56")
    23.56


    "culam" <> wrote in message
    news:043701c3c115$ae6feab0$...
    > 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
    >
    Don Grover, Dec 13, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gnarlodious
    Replies:
    4
    Views:
    17,579
    elizas
    May 5, 2010
  2. QQ

    convert a binary into decimal

    QQ, Mar 22, 2006, in forum: C Programming
    Replies:
    4
    Views:
    538
    Barry Schwarz
    Mar 23, 2006
  3. =?Utf-8?B?R3JlZyBH?=

    Convert currency formated string back into decimal

    =?Utf-8?B?R3JlZyBH?=, Nov 3, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    905
    Martin Honnen
    Nov 3, 2007
  4. Vitaliy
    Replies:
    1
    Views:
    471
    Peter Otten
    May 29, 2008
  5. valpa
    Replies:
    11
    Views:
    1,505
    Steven D'Aprano
    Mar 24, 2009
Loading...

Share This Page