How do I use mathematical functions like sqrt(), floor(), round(), sin(), etc?
sqrt()
floor()
round()
sin()
When doing:
To be perfectly precise, Darwin is enough. No need to import the whole Cocoa framework.
import Darwin
Of course, if you need elements from Cocoa or Foundation or other higher level frameworks, you can import them instead