jueves, 9 de noviembre de 2017

Fórmula modulo

x % y = x - (10 * (x/10))  <-- fórmula para el modulo

z = x - (10 * (x/10))
if z = 0  then montoNeto
if z <= 5 then montoNeto - z
if z >= 6 then montoNeto + (10-z)

No hay comentarios.:

Publicar un comentario