开发者

How to convert string to math equation? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Java: Parse a mathematical expression given as a string and return a number

Hello there,

I would like to ask you, if exist some way how to convert string "1+开发者_C百科2+3" to math equation? Exist for this purpose some function or method in Java?

Thanks for hints.


It's not part of the standard API.

But I implemented it in my project, you can have a look here. https://github.com/MarkyVasconcelos/Towel/wiki/Expression


This would necessarily depend on the implementation of the Equation class you're using. Check its API.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜