Help - Compute Max Value?
otisirachi@yahoo.com
Posts: 2
Hello.
Anyone know how to compute the Max value of two numbers, similar to "c" language function?
ex. MaxValue := Max(Val1, Val2).
Assembler is over my head.
Thanks.
otis
Anyone know how to compute the Max value of two numbers, similar to "c" language function?
ex. MaxValue := Max(Val1, Val2).
Assembler is over my head.
Thanks.
otis
Comments
If you want to accumulate a maximum from a sequence of data reads, for example, there's also an assignment version:
Just remember that all math in Spin is signed, including the comparisons that #> and <# (the "min" operator) perform internally.
-Phil
Thanks very much for the quick response, wow!
Works great!
Regards,
otis