Format 2 Decimal points

  • Hello all,

    I am trying to display two decimal points in a text box. I used a format code: #.## but it does not show a decimal point when the value has .00. How can I get it to show the value when it has and does not have decimal values? For example, values [.00 and .01].

    Thanks,

    DK

  • Try 0.00 instead of #.## or set the Format property of the text box to N2 (numeric with 2 decimal places) or D2 (decimal with 2 decimal places).

    Check these links for added number formatting help:

    Custom formatting:

    http://msdn2.microsoft.com/en-us/library/7x5bacwt(VS.71).aspx

    Standard formatting:

    http://msdn2.microsoft.com/en-us/library/dwhawy9k(VS.71).aspx

    HTH

    [font="Comic Sans MS"]toolman[/font]
    [font="Arial Narrow"]Numbers 6:24-26[/font]

  • Thanks Toolman,

    We ended up using F2. I used the standard formating link to test different formats.

    Thanks for the help,

    DK

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply