Created
September 30, 2011 14:22
-
-
Save martinusso/1253876 to your computer and use it in GitHub Desktop.
Rounding numbers in Firebird
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cast(cast(9223373.03685 as double precision) * cast(1.0000000000 as double precision) as numeric(18, 0)) as round_number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can also avoid using the "cast" out of the calculation. Can usually use the ROUND and TRUNC functions.