Skip to content
RED SAG Skills
mediumStudy question · answer published in iOS interview questions, so no pointsswiftnumbers

Floating-point money errors

An invoice adds 0.1 + 0.2 for GST calculations and shows 0.30000000000000004. What type is better for money?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions