UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

12 lines 398 B
export const greaterThanEqualTo = (a, b) => { let [aInts, aDecimals] = a.toString().split("."); let [bInts, bDecimals] = b.toString().split("."); if (Number(aInts) >= Number(bInts) || (Number(aInts) === Number(bInts) && Number(aDecimals) >= Number(bDecimals))) { return true; } else { return false; } }; //# sourceMappingURL=greaterThanEqualTo.js.map