Dev2.Data.Operations.Dev2NumberFormatter.Round C# (CSharp) Method

Round() private method

private Round ( FormatNumberTO formatNumberTO ) : string
formatNumberTO Dev2.Data.TO.FormatNumberTO
return string
        private string Round(FormatNumberTO formatNumberTO)
        // ReSharper restore InconsistentNaming
        {
            string error;
            string result;
            _functionEvaluator.TryEvaluateFunction(BuildRoundingExpression(formatNumberTO), out result, out error);

            if(!string.IsNullOrWhiteSpace(error))
            {
                throw new InvalidOperationException(error);
            }

            return result;
        }