# Figuring $x$ where $x = \max \{ \operatorname{round}(7),0 \}$

I'm a software developer and do very little with math but I have been called upon to incorporate a math function into my app I'm developing.

I'm stumped as to how to figure $x$ where $x = \max \{ \operatorname{round}(7),0 \}$.

Apologies if this is too rudimentary a question for math.stackexchange.

Janie

-
If round(7)==7, as I suspect, since 7 > 0... you get the idea. ;) –  Ｊ. Ｍ. Sep 15 '11 at 15:12
Your question is welcome here. This site is for math questions of all levels, @Jane. –  Srivatsan Sep 15 '11 at 15:14
Thanks J.M. I'm not entirely sure why the ",0" is even in the equation. It was part of my spec. I really appreciate your quick answer. JW –  Jane Wilkie Sep 15 '11 at 15:15
Well, in general, if you an expression of the form $\max \{ \operatorname{round}(t), 0\}$, then both the round and max parts will be required. For example, if I want my input to be a nonnegative integer, then I could use this formula to sanitize the input. –  Srivatsan Sep 15 '11 at 15:18
Someone might want a function like $\max(x,0)$ if s/he wants things zeroed out whenever $x$ is negative... –  Ｊ. Ｍ. Sep 15 '11 at 15:19