Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Division of two integers - response (3) by dnoeth

$
0
0

Hi KVB,
the first dvision is also rounded: SEL (100.00/210.00) = 0.476190476190476
 
When you add/substract/divide two decimals the resulting precision is the higher of the two operands, e.g.
dec(a,b) + dec(x,y) -> fractional digits = max(b,y)
Multiplying results in adding the fractional digits:
 
dec(a,b) * dec(x,y) -> fractional digits = b+y
 
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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