Less Than or Equal (Operator)

From HyPhy Wiki
Jump to: navigation, search

<= is a polymorphic built-in function whose purpose is to either to return the remainder of integer division, sort matrices or compare strings in a case-insenstive way.

Syntax

truth = a<=b

Functionality

If object is a(n)
Number 
Checks if any real number is less than or equal to another real number.
String 
Lexicographic(Generalized alphabetic order) less than or equal comparison between strings.
Topology or Tree 
Compare a potential match

Examples

Argument Type Input Result
Numeric
4<=5
1
String
"Battlestar Galactica"<="Bears"
1
Topology
Topology T1 = ((a,b)N1,c,d,((g,h)N3,e,f)N2);
Topology T2 = ((a,b)N1,c,d,(e,f)N2);
t = T2<=T1;
1
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox