Looks like AppHandleNumericComparison() has a few hints how to do that...
AppHandleNumericComparison()