UNPKG

true-math

Version:

True Math - math library for numbers of arbitrary length

6 lines (4 loc) 112 B
export default function split(num) { const split = num.split('.'); return [split[0], split[1] || '']; }