开发者

Implementing Math.pow() in blackberry

I cant find any pre d开发者_如何学Goefined function in blackberry JDE to implement Math.pow(). Can anyone please suggest how to power the values that are retrieved from the Edit text fields(Like X^Y value)...


What about net.rim.device.api.util.MathUtilities.pow ( double double ).


You don't need to implement your own. Check out

net.rim.device.api.util.MathUtilities.pow ( double double ) 


for what it's worth, i also came across this limitation at one point- (keeping a single library to be used in both j2me AND blackBerry) and there's a decent discussion at http://today.java.net/pub/a/today/2007/11/06/creating-java-me-math-pow-method.html which should help you. i've used this code and it's worked for me

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜