开发者

How to port this VB.net / C# code to Objective-C / iOS?

开发者 https://www.devze.com 2023-03-15 21:24 出处:网络
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 equi

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

精彩评论

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