在黑莓中实现 Math.pow()
我在黑莓 JDE 中找不到任何预定义函数来实现 Math.pow()。任何人都可以建议如何为从编辑文本字段检索的值提供动力(如 X^Y 值)...
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)...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
net.rim.device.api.util.MathUtilities.pow ( double double )
怎么样?What about
net.rim.device.api.util.MathUtilities.pow ( double double )
.您不需要实现自己的。查看
You don't need to implement your own. Check out
无论如何,我也曾一度遇到过这种限制 - (保留一个库在 j2me 和 blackBerry 中使用)并且在 http://today.java.net/pub/a/today/2007 /11/06/creating-java-me-math-pow-method.html 这应该对你有帮助。我使用过这段代码,它对我有用
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