UNPKG

double-double

Version:

Pure double-double precision functions *with strict error bounds*.

14 lines (8 loc) 171 B
function getDigitStart(s: string) { let i = 0; while (!/^[0-9]+$/i.test(s[i])) { i++; } return i; } export { getDigitStart }