# Revision history [back]

You have lost precision in the exponent. Use this instead:

sage: RealField(1000)(3**RealField(1000)(2.72))
19.8504251527275236501169613591809343996536832818298893731367232890539239539110192928936229752670609756876526611313601647375707220812753965333394338326864664393162650498858490630921586590646536288686549507904739021525557865246462265058167658909360187069317683688989045025859261795668964872237430699403


You have lost precision in the exponent. Use this instead:

sage: RealField(1000)(3**RealField(1000)(2.72))
19.8504251527275236501169613591809343996536832818298893731367232890539239539110192928936229752670609756876526611313601647375707220812753965333394338326864664393162650498858490630921586590646536288686549507904739021525557865246462265058167658909360187069317683688989045025859261795668964872237430699403


EDIT: In general, I think you need to ensure that you don't try to get higher precision after your computations. Rather, start with the higher precision from the very beginning.