support for log10 in npm