开发者

Implementing Math.pow() in blackberry

开发者 https://www.devze.com 2022-12-29 08:58 出处:网络
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 v

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

精彩评论

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

关注公众号