Question

I cant find any pre defined 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)...

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top