I know about decimalPlaces:
const number = new BigNumber(100.5254);
number.decimalPlaces(); // 4
And precision:
const number = new BigNumber(100.5254);
number.precision(); // 7
But I couldn't find any function that returns only the number of characteristics. That is, in this example, 3 ("1", "0" and "0").
Is there something for this?
It seems there isn't one, as of Nov 2019 at least, but you can subtract the decimal places from the total precision to get the digits before the dot:
Note that:
See the docs: