Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 216503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:34:14+00:00 2026-05-11T18:34:14+00:00

I am trying to figure out the style string for the Format(Expression as Object,

  • 0

I am trying to figure out the style string for the Format(Expression as Object, Style as String) function in a Reporting Services expression.

I can’t find where these style format strings are documented!

Specifically I am trying to format a Price field to be always 2 decimal places.

ie 1.5 formats to $1.50

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:34:14+00:00Added an answer on May 11, 2026 at 6:34 pm

    Format with Currency format string

    =Format(Fields!Price.Value, "C")
    

    It will give you 2 decimal places with “$” prefixed.

    You can find other format strings on MSDN: Adding Style and Formatting to a ReportViewer Report

    Note: The MSDN article has been archived to the “VS2005_General” document, which is no longer directly accessible online. Here is the excerpt of the formatting strings referenced:

    Formatting Numbers

    The following table lists common .NET Framework number formatting
    strings.

    Format string, Name

    C or c Currency

    D or d Decimal

    E or e Scientific

    F or f Fixed-point

    G or g General

    N or n Number

    P or p Percentage

    R or r Round-trip

    X or x Hexadecimal

    You can modify many of the format strings to include a precision
    specifier that defines the number of digits to the right of the

    decimal point. For example, a formatting string of D0 formats the
    number so that it has no digits after the decimal point. You

    can also use custom formatting strings, for example, #,###.

    Formatting Dates

    The following table lists common .NET Framework date formatting
    strings.

    Format string, Name

    d Short date

    D Long date

    t Short time

    T Long time

    f Full date/time (short time)

    F Full date/time (long time)

    g General date/time (short time)

    G General date/time (long time)

    M or m Month day

    R or r RFC1123 pattern

    Y or y Year month

    You can also a use custom formatting strings; for example, dd/MM/yy.
    For more information about .NET Framework
    formatting strings, see Formatting Types.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to style Vanilla Forums and I just can't seem to figure out
I'm trying to figure out a preg_match / php style regex to find repeating
I'm trying to figure out the most efficient way to implement RoR-style partials/collections for
Hey guys I'm trying to make a basic calculator (polish style) but can't figure
I'm trying to figure out where these 1px borders are being called in the
I'm trying to figure out how to format the code below so that the
I'm trying to figure out the regular expressions for the following and can't seem
I am trying to figure out the issue, and tried different styles that I
Trying to figure out an equation to get the current group a page would
Trying to figure out the best way to set up collection lists for users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.