Beispiel #1
0
        private static int ExecuteUnaryOperator(string element, long input)
        {
            // There are only two unary operators: "m" and "p".
            var result = element == "m"
                ? Math.IABS(input)
                : Math.ABS(input);

            return(result);
        }