0

I am writting such float value from Python (6.481044303797468) converted to string via StringIO '6.481044303797468' into Postgresql column of type NUMERIC(13,8). I read it back into Python which is returned as Decimal('6.48104430').

Why the precision is smaller?

1
  • NUMERIC(13,8) means the precision of 8. Commented Jan 16, 2019 at 13:51

2 Answers 2

2

NUMERIC(13,8) means: 8 decimal digits. So you are getting exactly what you saved.

Sign up to request clarification or add additional context in comments.

Comments

0

You asekd to remember just 8 digits after decimal point in here NUMERIC(13,8) change type for what your precision is desired

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.