Migrate-Anything
FIXED-PRECISION DECIMAL · ISO-4217

Decimal Currency Preservation During SaaS Migration

Passing monetary strings through IEEE-754 binary floats causes infamous 0.1 + 0.2 = 0.30000000000000004 drift and fails accounting checksums. Migrate-Anything parses every price, tax, discount, and ledger amount using decimal.Decimal.

Currency Parsing Normalization Matrix

Raw Export StringNormalized DecimalSQL Target Type
"$1,250.50" Decimal("1250.50") NUMERIC(18, 2) / integer minor units 125050
"€1.234,56" (EU format) Decimal("1234.56") Disambiguates . thousands vs , decimal separator
"($250.00)" (Accounting negative) Decimal("-250.00") Signed NUMERIC / negative minor-unit integer
"JPY 1500" (Zero-decimal currency) Decimal("1500") ISO-4217 exponent 0 (never multiplied by 100)

Verify Decimal Precision via /v1/dry-run

curl -sS -X POST https://migrate.fastmesh.dev/v1/dry-run \
  -H "Content-Type: application/json" \
  -d '{
    "source_format": "csv",
    "target_format": "postgres_ddl",
    "table_name": "ledger_entries",
    "source_data": "tx_id,currency,gross_amount,refund_amount\n1,USD,\"$1,250.50\",\"($250.00)\"\n2,EUR,\"€1.234,56\",\"€0,00\""
  }'
Audit financial columns without float drift
Zero customer data retention. Empty or malformed requests return HTTP 422 ($0 billed).
Open 5s Try-Now Sandbox