"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var countDecimals = f => {
  try {
    var s = parseFloat(f).toString();
    if (s.indexOf('e-') > 0) {
      return parseInt(s.split('-')[1]);
    }
    return f.toString().split('.')[1].length;
  } catch (e) {
    return 0;
  }
};
var _default = countDecimals;
exports.default = _default;