How to define a constant (but variable)?
I mean such a situation:
I define as a constant the symbol "xz",
in the following way:
if the current share price is 110.20, then xz = 110.00
if the current share price is 110.50, xz = 111.00
if the current share price is 110.60, then xz = 111.00
(similarly, at the price: 0.87 to, xz = 0.90 and if 39.45 it, 39.50 according to stock exchange requirements)
So how do you define a constant that changes, rounds to the nearest, full current price?