Currency data type

Discussion in 'ASP .Net' started by John Rebbeck, Jul 17, 2003.

  1. John Rebbeck

    John Rebbeck Guest

    I'm currently using Decimal for my currency data but I noticed it has 4
    decimal places (which is wrong when displaying with .ToString()). I either
    need to format the data correctly when displaying it or use a data type
    intended for currencies. Can anyone help me? Btw, I use SQL Server with its
    money data type so they need to be compatible.

    Cheers,
    John
    John Rebbeck, Jul 17, 2003
    #1
    1. Advertising

  2. Hi,

    MONEY translates to decimal or numeric anyway, can't remember which. You can
    use formatting strings, here is a good page (VB though ;)

    http://www.aspfaqs.com/ASPscripts/PrintFAQ.asp?FAQID=181

    Best regards,

    Marc Höppner
    NeoGeo

    "John Rebbeck" <> wrote in message
    news:%...
    > I'm currently using Decimal for my currency data but I noticed it has 4
    > decimal places (which is wrong when displaying with .ToString()). I either
    > need to format the data correctly when displaying it or use a data type
    > intended for currencies. Can anyone help me? Btw, I use SQL Server with

    its
    > money data type so they need to be compatible.
    >
    > Cheers,
    > John
    >
    >
    Marc Hoeppner, Jul 17, 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. luna
    Replies:
    1
    Views:
    6,798
  2. heyo
    Replies:
    3
    Views:
    873
    Dan Pop
    Apr 1, 2004
  3. pete
    Replies:
    4
    Views:
    771
    Dan Pop
    Apr 2, 2004
  4. Tim Roberts
    Replies:
    0
    Views:
    410
    Tim Roberts
    Apr 27, 2005
  5. Yevgen Muntyan

    #define ALLOCIT(Type) ((Type*) malloc (sizeof (Type)))

    Yevgen Muntyan, Feb 9, 2007, in forum: C Programming
    Replies:
    10
    Views:
    870
    Yevgen Muntyan
    Feb 13, 2007
Loading...

Share This Page