dtoa: don't assume LDBL_MANT_DIG is a base-10 constant.

It can be any constant expression with the right value.