Redzen.Structures.Compact.FixedPointDecimal.TryParseTruncate C# (CSharp) Method

TryParseTruncate() public static method

Converts the string representation of a number to its FixedPointDecimal equivalent. A return value indicates whether the conversion succeeded or failed. Values outside the range of a FixedPointDecimal are truncated to the min or max values for FixedPointDecimal as appropriate. Input values with more than four decimal places have their precision truncated to to four decimal places.
public static TryParseTruncate ( string s, FixedPointDecimal &result ) : bool
s string The value to parse.
result FixedPointDecimal Upon success contains the equivalent of the value of .
return bool
        public static bool TryParseTruncate(string s, out FixedPointDecimal result)
        {
            return InternalTryParse(s, out result, true);
        }