Oracle Integration Cloud: Building Integrations That Survive Production · Module 5 · Mappings and transformations
Numbers, precision and currency
Lesson 52 of 175 · 2 min
A cent lost per line is invisible per invoice and material per month. That is why numbers get their own lesson. ROUNDING VERSUS TRUNCATION IS THE FIRST DECISION AND THE ONE THAT COMPOUNDS. Rounding distributes the error in both directions and roughly cancels; truncation always loses in the same direction, so a hundred thousand lines lose consistently rather than randomly. Round unless somebody has told you in writing to truncate, and where money is involved that instruction should come from finance rather than from a developer's convenience. SCALE is the second. A source with four decimal places mapped into a target with two is a rounding decision made by the schema, silently, on every value. Know the scale on both sides before mapping any amount, and where they differ, say what happens to the difference. THE MINOR-UNIT QUESTION is the third and it is the one that produces the largest…
The full lesson is part of the course
The video, the complete written lesson and the module quiz are included in Oracle Integration Cloud: Building Integrations That Survive Production, with a certificate on completion and a fourteen-day refund window.
In this module: Module 5 · Mappings and transformations
- 1What a mapping really isFree preview
- 2The mapper, practically
- 3Required, optional and the empty element
- 4Repeating elements and loops
- 5Conditional mapping
- 6Functions: strings, numbers and dates
- 7Dates and time zones, carefully
- 8Numbers, precision and currency
- 9Lookups inside a mapping
- 10Testing a mapping with real data
- 11Namespaces, and the errors they cause
- 12Keeping a mapping maintainable
- 13What breaks: five mapping failures
- 14Lab briefing · Map two schemas that disagree
