In answering this earlier question about getting a use of ceil() on a CGFloat to compile for all architectures, I suggested a solution along these lines:
ceil()
var f : CGFloat = 0.5 var result : CGFloat result = CGFloat(ceil(Double(f)))
Tell me what I'm missing, but that seems pretty simple to me.