To 2 decimal places

Discussion in 'ASP .Net Datagrid Control' started by Barney Yohannes, Jan 21, 2004.

  1. Folks,
    I know some of you here are extremely dynamic.

    I am working with a variable that is declared as a decimal. But I want to convert the decimal into 2 decimal places.

    In other words, I want to convert my UnitPrice from 6.9900 to 6.99

    Please help me how I can convert the UnitPrice

    Thank you!
    Barney Yohannes.

    P.S. Thank you Simon Gorski for the tip about MAX(Item)+1 help yesterday.
    Barney Yohannes, Jan 21, 2004
    #1
    1. Advertising

  2. Format(stringToformat, "#,##")

    =?Utf-8?B?QmFybmV5IFlvaGFubmVz?= <>
    wrote in news::

    > Folks,
    > I know some of you here are extremely dynamic.
    >
    > I am working with a variable that is declared as a decimal. But I
    > want to convert the decimal into 2 decimal places.
    >
    > In other words, I want to convert my UnitPrice from 6.9900 to 6.99
    >
    > Please help me how I can convert the UnitPrice
    >
    > Thank you!
    > Barney Yohannes.
    >
    > P.S. Thank you Simon Gorski for the tip about MAX(Item)+1 help
    > yesterday.
    >
    >
    >
    Arthur Dzhelali, Jan 21, 2004
    #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. Eoin Mcloughlin

    Decimal places and huge fractions.

    Eoin Mcloughlin, Feb 11, 2004, in forum: Perl
    Replies:
    5
    Views:
    1,598
    Eoin Mcloughlin
    Feb 13, 2004
  2. Curt_C [MVP]

    Re: beginner: prob with decimal places

    Curt_C [MVP], May 18, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    329
    Curt_C [MVP]
    May 18, 2004
  3. Curt_C [MVP]

    Re: beginner: prob with decimal places

    Curt_C [MVP], May 18, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    536
    Curt_C [MVP]
    May 18, 2004
  4. Harry

    Remove Decimal Places

    Harry, Jun 3, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    8,922
    VB Programmer
    Jun 3, 2004
  5. Bharat Bhushan

    Decimal Places

    Bharat Bhushan, Aug 8, 2003, in forum: Java
    Replies:
    2
    Views:
    480
    Lee Weiner
    Aug 8, 2003
Loading...

Share This Page