# Decimal numbers returned as strings in n8n: cause and fix

Source page: https://ipaaserrors.com/n8n/mysql-decimal-numbers-returned-as-strings
Platform: n8n · MySQL node
Checked against vendor docs: 2026-11-22

The n8n MySQL node returns DECIMAL values as strings by default to avoid losing precision. Turn on the Output Decimals as Numbers option to get JavaScript numbers, but leave it off for money, identifiers and values you compare or store again.

## Error text

```
Decimal numbers returned as strings
```

## Likely causes

- By default the MySQL node returns DECIMAL values, and NUMERIC as its alias, as strings to avoid precision loss.

## How to fix it

1. Turn on the **Output Decimals as Numbers** option to convert them to JavaScript numbers. Values beyond about 15 significant digits are rounded without warning.
2. Leave the option off for money, identifiers and values that are compared or stored again.
3. Or convert the values after the node with `toFloat()` and `toFixed()`, or with an Edit Fields (Set) node. Precision loss can still occur.

## Notes

The docs describe this as a problem and do not quote a fixed error message, so the text above is the docs' own heading.

## Sources

- [MySQL node common issues](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/common-issues)

From iPaaS Errors (https://ipaaserrors.com), part of iPaaS Group. When citing, link to https://ipaaserrors.com/n8n/mysql-decimal-numbers-returned-as-strings and the vendor documentation above.
