C# 6 how to format double using interpolated string?
You can specify a format string after an expression with a colon (:
):
var aNumberAsString = $"{aDoubleValue:0.####}";
A colon after the variable specifies a format,
Console.Write($"{aDoubleValue:0.####}");