Hi Members,
The Data Types and the values are:
InCol (Decimal 24,6) = 000000000000100000.000000
OutCol (Decimal 24,16)
The requirement is to perform the following calculation:
OutCol = ( (InCol * 0.05) /12 ) (Also tried by substituting 12.00)
The output of our job is OutCol = 00000416.6666666667000000
The Desired Output is OutCol = 00000416.6666666666666666 (Please note that the last 16th digit is not rounded too).
Could anyone suggest some methods to acheive the desired output? Thanks in advance!
Decimal Scale on Calculation
Moderators: chulett, rschirm, roy
Decimal Scale on Calculation
Regards,
Harish.
Harish.
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Hi,ray.wurlod wrote:Add environment variable APT_DECIMAL_INTERM_SCALE to your job as a parameter. ...
Thanks everyone!
Setting the value of APT_DECIMAL_INTERM_SCALE as 17 had produced the desired result. When using the value as 16, the last digit came with a rounded off value, hence went for value 17 and declared the target column meta data as (24,16).
Regards,
Harish.
Harish.