exercism / swift

Exercism exercises in Swift.
https://exercism.org/tracks/swift
MIT License
113 stars 158 forks source link

Fixed the rounding instructions for `monthlyRateFrom()` function. #681

Closed danielmorell closed 1 year ago

danielmorell commented 1 year ago

Prior to rounding the monthlyRateFrom() function should have a value of 12601.6 given the values in the test...

https://github.com/exercism/swift/blob/19b3d8f6afdb5f34629a55bf80e8ffa4e079c87c/exercises/concept/freelancer-rates/Tests/FreelancerRatesTests/FreelancerRatesTests.swift#L34C13-L37

If, (as the instructions say) this value is rounded down the result would be 12601.0 not the expected 12602.0.