How to trim numerical strings as per database column precision #6291
Replies: 2 comments 2 replies
-
|
I guess you need some.more examples or know more exactly what you want. I guess your DB is doing the usual European half up rounding. Ecxel by default often does a down or just cut off as often used in USA. A Calc step could maybe behave this way too. Your two example numbers could be done with substring cutting off the last two letters an then let the DB auto convert it, not needing any further rounding any more to be done. |
Beta Was this translation helpful? Give feedback.
-
|
In the select values transform you can change the rounding type on your number columns in the metadata tab, though I haven't tested that with table output transform it might work. Make sure you also set the precision you want (2 decimals) |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I get numeric data in string format, which I want to save in Oracle database column with datatype NUMBER(18,2). Is there a way I can skip the rounding in database?
Original data: 278.7182
Current table data after hop processing: 278.72
Expected table data: 278.71
Original data: 278.7812
Current table data after hop processing: 278.78
Expected table data: 278.78
Original data: 278.7899
Current table data after hop processing: 278.79
Expected table data: 278.78
Beta Was this translation helpful? Give feedback.
All reactions