Click here to Skip to main content
16,004,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to display a table of values with 3 columns. I have the values limited to 3 decimal places using Math.Round and when Console.Writeline writes lines using "\t" for tab the vertical alignment is off.

I was hoping if there was someone out there who can recommend a solution. Thank you my gurus.

What I have tried:

I have tried separating columns by two tabs (thinking that perhaps the problem was that some numbers took up too many positions) but to no avail.
Posted
Updated 13hrs ago
v2
Comments
charles henington 13hrs ago    
What is the output you're expecting and what results are you seeing
LF FF 11hrs 20mins ago    
This helps. I figured it out. It appears that the "\t" adds an additional tab if there are more than 7 characters

1 solution

Answered only to remove from unanswered queue - solved by OP.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900