Parses precision from the provided string.
true - the function has succeeded, false - it has failed
The function verifies validity of the parsing result. The valid precision is an integer number in the range from 0 (inclusive) to 15 (inclusive).
This sample shows how to call the Geodetic.Longitude.ParsePrecision method from C# code:
string errorMessage = String.Empty;
string str = "13";
int precision = 0;
if (Geodetic.Longitude.ParsePrecision(str, out precision, out errorMessage))
{
Console.WriteLine("Precision: " + precision.ToString());
}
else
{
Console.WriteLine(errorMessage);
}