Back to functions

Expression.gt


greater than

Checks if one expression is greater than other.

Usage: nerdamer(x).gt(y)


Parameters

String x Expression 1
String y Expression 2

Returns

Boolean

EXAMPLES:
var x = nerdamer('sqrt(2)').gt('2^(1/2)');
console.log(x.toString());
var x = nerdamer(5).gt(2);
console.log(x.toString());
var x = nerdamer('a+1').gt('a+1');
console.log(x.toString());
var x = nerdamer('Infinity').gt('Infinity');
console.log(x.toString());
OUTPUT:
Back to functions