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 7900773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:03:02+00:00 2026-06-03T09:03:02+00:00

So I am curious if its possible for me to use the .ToString(C) method

  • 0

So I am curious if its possible for me to use the .ToString("C") method to generate a currency value off of my number, but have it display the value combined with a minimum value.

An example, lets say that my number would never ever go above $1,000.00. However, the values that are usually generated are below like this, $0,487.00. I know your probably thinking why would you want to do that. In this situation I don’t want the label size to increase or decrease based on the content. Also, I want the numbers to be substituted with 0’s if they are not filled in by the actual dollar amount. Any suggestions?

  • 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-06-03T09:03:04+00:00Added an answer on June 3, 2026 at 9:03 am

    You can just use a custom format string:

    .ToString("$0,000.00");
    

    Note that by using 0s instead of #s in your format string, it guarantees that those digits will be present, even if the number’s not big enough.

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

Sidebar

Related Questions

I'm curious if it's possible to use an annotation on a class or method
Not sure if it's possible but I'm curious and I haven't had any luck
I'm curious whether it's possible to use Google Maps Street View as a platform
I'm curious if it's possible to use .htaccess to serve up a default image
Okay, I'm a real LaTeX noob. But I will have to use it. And
I was curious to see if its possible that from a controller (or else
When a popover shows, I'm curious whether it's possible to set the underlying settings
I am just curious why the Windows DataGridView control is hiding its AutoGenerateColumns property
If I am going to use the code: extract( array( 'key.name' => 'value', 'somekey'
I'm curious if it's possible to take several conditional functions and create one function

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.