Currency data type

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Rebbeck

    #1

    Currency data type

    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

    #2
    Re: Currency data type

    Hi,

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



    Best regards,

    Marc Höppner
    NeoGeo

    "John Rebbeck" <john@rebent.co m> wrote in message
    news:%234J5LnHT DHA.3116@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > 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[/color]
    its[color=blue]
    > money data type so they need to be compatible.
    >
    > Cheers,
    > John
    >
    >[/color]


    Comment

    Working...