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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:08:15+00:00 2026-05-26T05:08:15+00:00

I have an internal process that requires data in a very specific format. Nothing

  • 0

I have an internal process that requires data in a very specific format. Nothing I can do about that. So in my VB.NET program I am trying to output a number with a terminating decimal and nothing after it. I tried

 swOut.WriteLine("{0,10:###0.}", var)

But the output is a whole number

 886
 913
 941
 971
1002
1034

and what I need is

 886.
 913.
 941.
 971.
1002.
1034.

Must be easy but cant find it in the .NET help.

thanks

~agp

  • 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-26T05:08:15+00:00Added an answer on May 26, 2026 at 5:08 am

    Try just moving the decimal point outside of the format specification:

    swOut.WriteLine(String.Format("{0,10:###0}.", var))
    

    You might be able to do it this way too:

    swOut.WriteLine("{0,10:###0}.", var)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET page that requires data from another DLL and the process
We have an internal ASP.NET MVC application that requires a logon. Log on works
I have a internal website that users log into. This data is saved as
We have an internal .NET case management application that automatically creates a new case
I have an internal business process that my finance dept runs. To kick it
I have an internal enterprise application I've developed for my company built on .Net
I have an internal enterprise app that currently consumes 10 different web services. They're
I have an internal customer that only receives his email report from MS Report
We have an internal asp.net forms app where one page is essentially a WYSIWYG
I have an internal WPF client application that accesses a database. The application is

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.