Allow precision.hpp to work with number types in base 10. Fix binomial_distribution quantile when success_fraction is 1. Fixes #6069.