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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 99k
  • Answers 99k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There's a Ruby Library called Remit for working with Amazon… May 11, 2026 at 7:43 pm
  • Editorial Team
    Editorial Team added an answer Since the leading dot is merely a conventional hint to… May 11, 2026 at 7:43 pm
  • Editorial Team
    Editorial Team added an answer Johan was close, but didn't have the actual value. The… May 11, 2026 at 7:43 pm

Related Questions

I am trying to do an ASP.net custom control for the Flow Player flv
I'm currently working on a Google Maps project and am implementing a search function.
i am trying to set the htmlAttribute property but i cant figure out the
I am trying to do something I thought would be simple. I have a
I am trying to get John Resig's jQuery Live Search with Quicksilver Style to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.