updating oE larger_of

larger_of

include math.e 
namespace math 
public function larger_of(object objA, object objB) 

returns the larger of two objects.

Parameters:
  1. objA : an object.
  2. objB : an object.
Returns:

Whichever of objA and objB is the larger one.

Comments:

Introduced in v4.0.3

Example 1:
? larger_of(10, 15.4) -- returns 15.4 
? larger_of("cat", "dog") -- returns "dog" 
? larger_of("apple", "apes") -- returns "apple" 
? larger_of(10, 10) -- returns 10 
See Also:

max, compare, smaller_of

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu