Created extension on Double and Int to make them interoperate with CGFloat better