/// <summary> /// Parses a string as an signed decimal integer. /// </summary> /// <param name="str">The string to parse.</param> /// <returns>The parsed int.</returns> public static int Parse_DecimalSigned(FOS_System.String str) { bool neg = str.StartsWith("-"); int result = (int)Parse_DecimalUnsigned(str, (neg ? 1 : 0)); if (neg) { result *= -1; } return result; }