MIN/MAX - HIGHEST/LOWEST

hippy

Technical Support
Staff member
Is it possible to please add two new binary operators to the PICAXE language; HIGHEST and LOWEST ?

- b0 = b1 HIGHEST b2 ' Result is the highest value
- b0 = b1 LOWEST b2 ' Result is the lowest value

HIGHEST would actually be a synonym for the MIN operator, and LOWEST a synonym for the MAX operator, so it would only [sic] be a syntax / parser change in the compiler. It would however overcome the confusing situation of having to use -

- b0 = b1 MIN b2 ' Result is the highest value
- b0 = b1 MAX b2 ' Result is the lowest value

Edited by - hippy on 8/15/2005 11:23:52 PM
 
Top