How to port this VB.net / C# code to Objective-C / iOS?
I need to do this in Objective-C / iOS:
Math.Round(h, MidpointRounding.AwayFromZero)
I know we have a round() functi开发者_如何转开发on, but how about that "AwayFromZero" option? What is the equivalent to use?
It is ceil
ceil(h)
Is there a ceil / ceiling function in Objective-C / iOS? It would have the same effect as your vb/c# code.
精彩评论