Cannot find type 'int' in scope

I had a swift compiler errors of this type : "Cannot find type 'int' in scope" here is my code .

Any idea? thanks

Replies

Welcome to the forum.

The type is Int (with Uppercase), not int. Swift is case sensitive.

You may have a typo: rouned and not rounded.

If that solves your issue, don't forget to close the thread.