UNPKG

polish-number-to-words

Version:

Spell numbers using words in Polish | Napisz liczbę słownie po polsku

9 lines (8 loc) 265 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDecimalPlaces = void 0; function getDecimalPlaces(n) { const str = n.toString(); return str.split('.')[1].length; } exports.getDecimalPlaces = getDecimalPlaces;