How do you compare negative numbers with positive numbers?

Colin Holgate coiin at verizon.net
Sun Dec 12 15:28:09 EST 2010


On Dec 12, 2010, at 3:20 PM, Charles Szasz wrote:

> For example, comparing -3.5 with 2.23. How do you do this?

You can use abs to get the positive absolute value, and compare those:

put abs(-3.5)>abs(2.23)





More information about the Use-livecode mailing list