compare NUMBER NUMBER
Description: static String _ncompare = "${ncompare;<anumber>;<bnumber>}";
Date: 2019-10-12T20:27:56-04:00

- Supported by OSGi enRoute

- # compare NUMBER NUMBER

      static String	_ncompare	= "${ncompare;<anumber>;<bnumber>}";

      public int _ncompare(String args[]) throws Exception {
      	verifyCommand(args, _ncompare, null, 3, 3);
      	double a = Double.parseDouble(args[1]);
      	double b = Double.parseDouble(args[2]);
      	if (a > b)
      		return 1;
      	if (a < b)
      		return -1;
      	return 0;
      }