format

  1. G

    Question Format the variable to Currency?

    I am trying to add a double variable into a Console.WriteLine and am not sure to: Add into the Console.WriteLine command and Format the variable to Currency. Any Help is greatly appreciated.
  2. E

    Question How to format file sizes?

    Currently I have this code: public static class SizeUnit { public static string FileSizeToString(long size) { double FileSize = size; string[] format = new string[] { "{0} bytes", "{0:0.00} KB", "{0:0.00}...
Back
Top Bottom