import java.math.BigDecimal;
class DecimalTest {
return n.signum() == 0 ? 1 : n.precision() - n.scale();
}
System.
out.
println(n
+ " : " + integerDigits
(n
)); }
static public void main
(String[] args
) {
System.
out.
println(bd.
precision()-bd.
scale());
}
}
aW1wb3J0IGphdmEubWF0aC5CaWdEZWNpbWFsOwoKY2xhc3MgRGVjaW1hbFRlc3QgewoKCXN0YXRpYyBpbnQgaW50ZWdlckRpZ2l0cyhCaWdEZWNpbWFsIG4pIHsKICAgIAlyZXR1cm4gbi5zaWdudW0oKSA9PSAwID8gMSA6IG4ucHJlY2lzaW9uKCkgLSBuLnNjYWxlKCk7Cgl9CgoJc3RhdGljIHZvaWQgY2hlY2soQmlnRGVjaW1hbCBuKSB7CgkJU3lzdGVtLm91dC5wcmludGxuKG4gKyAiIDogIiArIGludGVnZXJEaWdpdHMobikpOwoJfQoKCXN0YXRpYyBwdWJsaWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKCUJpZ0RlY2ltYWwgYmQgPQluZXcgQmlnRGVjaW1hbCgiNDAwMC4yMiIpOwoJCgkJU3lzdGVtLm91dC5wcmludGxuKGJkLnByZWNpc2lvbigpLWJkLnNjYWxlKCkpOwoJCgl9Cn0K