Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
[flagged]
avi_vallarapu on June 27, 2022 | hide | past | favorite


Well, this behaviour of Oracle may be debatable too.

INSERT INTO test_number VALUES(10.0500);

SQL> SELECT * FROM test_number;

         I
---------- 10.05


Anyways, I am more interested in how PostgreSQL can make us have trailing zeroes or no trailing zeroes depending on the type you choose or other work-arounds.


I think there is a way to get the inserted trailing zeroes in Oracle as well. So if you explicitly inserted 10.0500, you want to get 10.0500 but not 10.05 ?


especially in the price


I know some spplications that just crashed due to incorrectly assuming trailing zeroes




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: