Use Boost.Multiprecision.