Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Rounding down decimals - response (2) by dnoeth

$
0
0

This is called truncating, if it's up to 18 digits you can simply cast to a bigint:
select cast(x as bigint)

Or CAST(x - x MOD 1 AS DEC(38,0))

Dieter


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>