Skip to content

Conversation

@soyeric128
Copy link
Contributor

Added more information to ROUND function:

When using this function's result in calculations, be aware of potential precision issues due to its return data type being DOUBLE, which may affect final accuracy. Quick Examples: SELECT ROUND(4/7, 4) - ROUND(3/7, 4); -- Result: 0.14280000000000004 SELECT ROUND(4/7, 4)::DECIMAL(8,4) - ROUND(3/7, 4)::DECIMAL(8,4); -- Result: 0.1428 
@vercel
Copy link

vercel bot commented Nov 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
databend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2023 4:39pm
@soyeric128 soyeric128 merged commit 3fb95e5 into databendlabs:main Nov 14, 2023
@soyeric128 soyeric128 deleted the round-updates branch November 14, 2023 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants