Unity.IL2CPP.Formatter.CheckFloatingPointFormatting C# (CSharp) Method

CheckFloatingPointFormatting() private static method

private static CheckFloatingPointFormatting ( string stringValue, [ suffix ) : string
stringValue string
suffix [
return string
        private static string CheckFloatingPointFormatting(string stringValue, [Optional, DefaultParameterValue("")] string suffix)
        {
            if (!stringValue.Contains("."))
            {
                if (stringValue.Contains("E"))
                {
                    stringValue = stringValue.Replace("E", string.Format(".0E", new object[0])) + suffix;
                    return stringValue;
                }
                stringValue = stringValue + string.Format(".0{0}", suffix);
                return stringValue;
            }
            if (suffix == "f")
            {
                stringValue = stringValue + suffix;
            }
            return stringValue;
        }