////////////////////////////////////////////////////////////////////////
//Contains common helper functions which are needed
//across gadgets
////////////////////////////////////////////////////////////////////////
var ISOGadgetsCommon;
(function (ISOGadgetsCommon) {
    var GadgetHelper = (function () {
        function GadgetHelper() {
        }
        GadgetHelper.getFormattedNumber = function (value) {
            if (_.isNaN(value) || _.isNull(value))
                return value;
            return value > 0 ? Number(value.toFixed(2)) : 0;
        };
        GadgetHelper.getSignedFormattedNumber = function (value) {
            if (_.isNaN(value) || _.isNull(value))
                return value;
            return Number(value.toFixed(2));
        };
        return GadgetHelper;
    }());
    ISOGadgetsCommon.GadgetHelper = GadgetHelper;
})(ISOGadgetsCommon || (ISOGadgetsCommon = {}));
//# sourceMappingURL=ISOGadgetsCommon.js.map