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.
| Raw Export String | Normalized Decimal | SQL 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) |
/v1/dry-runcurl -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\""
}'