开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜