Replies: 1 comment 1 reply
-
You can use the Percentage Formatting trick Here is an example I usually use: var progress = new SynchronousProgress<ProgressArgs>(s =>
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"{s.ProgressPercentage:p}: \t[{s.Source[..Math.Min(4, s.Source.Length)]}] {s.TypeName}:\t{s.Message}");
Console.ResetColor();
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @Mimetis
For a future version it would be good to only put two decimals, so that it maintains a standard
Beta Was this translation helpful? Give feedback.
All reactions