79265434

Date: 2024-12-09 15:03:35
Score: 0.5
Natty:
Report link

This question is old, so, probably my next answer is just relevant recently.

As of today - tested in a postgresql 15 - the function trunc does the trick:

SELECT round(cast (41.0255 as numeric),3), --> 41.026
       trunc(cast (41.0255 as numeric),3)  --> 41.025
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CarlosRuiz