Home · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z · Numbers & Symbols

The Compleat User RPL Encyclopedia


(“Less Than or Equal”)

         x y    0 or 1
       #a #b    0 or 1
"string" "string"    0 or 1     
'expr' 'expr'    0 or 1 
x_unit y_unit    0 or 1 
Keyboard Access:
  HP-28: the  key
  HP48S: [alpha] LS-3
         PRG TEST NXT
  HP48G: [alpha] LS-3
         PRG TEST
HP49/50: LS-X
         LS-PRG TEST
         «TESTS»
Less Than or Equal function: Tests whether the level 2 object is less than or equal to the level 1 object.

The  function follows the “0 if false, 1 if true” rule. It is intended for use in program branching, but it can be used inside algebraic objects for “conditional calculations” without any program branching required.

Examples:

    1 (true, because 5 < 9)
    1 (true, because 5 = 5)
    0 (false, because 5 is not ≤ 2)
 returns A if C>D, or A+B if C≤D.
    same as above.
    same as above (because  automatically does ).
HP49G bug:     1 (should be )
This bug is not present in the HP49G+ or HP50G.

HP49/50 maximum integer inputs: no limit.

BYTES: 2.5