I was quite disappointed when decimal.Decimal(math.sqrt(2))
yielded
Decimal('1.4142135623730951454746218587388284504413604736328125')
and the digits after the 15th decimal place turned out wrong. (Despite happily giving you much more than 15 digits!)
How can I get the first m
correct digits in the decimal expansion of sqrt(n)
in Python?