Hi,
i've a problem with rounding a series of numbres.
for exemple :
1|2012|1|1.7108333333333332|6.591666666666668|50.5225|2.098333333333333|33394.35
i've tried with "tmap", and the expression was DataOperation.FIX(value)
It worked and i've got this resulat :
1|2012|1|2.0|7.0|51.0|2.0|33394.0
but i would like to keep the 2 last numbre after the decimal,
just like
1|2012|1|1.71|6.59|50.52|2.10|33394.35
i have tried with DataOperation.FIX(value,2) and (DataOperation.FIX(value*100))/100
it didn't work...
and does anyone can help me?? where can i set up the precision?
thanks
Miao
i've modified the schema of input component, but there is a error :
The method FIX(double) in the type DataOperation is not applicable for the arguments (BigDecimal)...
Hi Miao
I'm fine.
Create job as follow.
tFileInputDelimited --> tLogRow
There is no need to use FIX() method here.
Hope this can help you.
Regards,
Pedro
Can i send a mail to you with my job, because i have other components before this step...
Hi Miao I'm fine. Create job as follow. tFileInputDelimited --> tLogRow There is no need to use FIX() method here. Hope this can help you. Regards, Pedro