I have a formula and I don't know how to write it in mathematical form (I'm a programmer.)
The formula needs the variable y to be y - 1 unless y <= 0, in which case y should just be 0.
Programmatically, it would look like this:
if (y > 0) then
y = y - 1
else
y = 0
How does one write this using proper mathematical terminology?
y=y-1would still not be $y=y-1$. Instead you might have $y' = y-1$, $y_{n+1} = y_n - 1$, or some even more complicated structure. So it becomes a rather open-ended question to ask, "How does one write this using proper mathematical terminology?" – David K Jun 26 '15 at 21:09ybe an integer? Anyway, the OP got the idea and can adapt it to their specific situation, I believe. – Did Jun 27 '15 at 07:13