Shop OBEX P1 Docs P2 Docs Learn Events
Finding the max number — Parallax Forums

Finding the max number

LuckyLucky Posts: 98
edited 2010-02-14 21:23 in Propeller 1
How would one go about finding the max number out of two or more values? For example, in java the command·" z = Math.max(x, y); " z is assigned the highest value between the two numbers compared, x and y. I searched the propeller manuel and did not find any similar command. If such a command did not exist, could someone suggest a piece of code that could do the same function.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"You do not really understand something unless you can explain it to your grandmother."


-Lucky[size=-1][/size]

Comments

Sign In or Register to comment.