04-15-2019, 12:50 PM
For my part, I think the simplest solution would probably be:
I think that would work? 0 for 0. And 1 for any other positive value - and less calculation than dividing by 255 (and given there's no guarantee that TRUE=255, possibly safer?)
Creo que la solución más simple probablemente sería:
Creo que eso funcionaria? 0 para 0. Y 1 para cualquier otro valor positivo, y menos cálculo que dividir por 255 (y dado que no hay garantía de que TRUE = 255, ¿sea más seguro?)
Code:
LET valor = sgn (sum=3)
I think that would work? 0 for 0. And 1 for any other positive value - and less calculation than dividing by 255 (and given there's no guarantee that TRUE=255, possibly safer?)
Creo que la solución más simple probablemente sería:
Code:
LET valor = sgn (sum=3)
Creo que eso funcionaria? 0 para 0. Y 1 para cualquier otro valor positivo, y menos cálculo que dividir por 255 (y dado que no hay garantía de que TRUE = 255, ¿sea más seguro?)