using System.Text.RegularExpressions;
public static void Main()
float progressPercentage = 99.99f;
var result = Math.Round(progressPercentage, 1);
var result2 = Math.Round(progressPercentage, 1, MidpointRounding.ToZero);
var regexObj = new Regex(@"(\d+\.\d)");
Console.WriteLine("progressPercentage " + progressPercentage);
Console.WriteLine("in game " + result);
Console.WriteLine("in test " + result2);