Use Numeric Types Carefully
- Use integers for counts, indexes, and other whole values.
- Use numbers for amounts, ratios, percentages, fees, and decimals.
- Connect values with compatible types; add Cast when a deliberate conversion is needed.
- Clamp operator-editable amounts when the workflow has a safe minimum or maximum.