using System.Text.RegularExpressions;
using System.Collections.Generic;
public static void Main()
List<double> amounts = new List<double>
foreach (var amount in amounts)
Console.WriteLine(TruncateLesserThanZeroCryptoAmt(amount));
public static string TruncateLesserThanZeroCryptoAmt(double amount)
Regex regex = new Regex("^(0.0*\\d{3})");
var match = regex.Match(String.Format("{0:F20}", amount));