Java 1.5: mathematical formula parser

后端 未结 5 924
野趣味
野趣味 2021-01-20 00:39

Hello i often develop JTableModels in which some cells must contain the result of apliying a certain simple mathematical formula. This formulas can have:

  • Opera
5条回答
  •  北恋
    北恋 (楼主)
    2021-01-20 01:00

    Try JEP.

    You can define new variables to the parser hence it can contain reference names like "INTEREST_RATE".But you have to define it before hand.

    As for cell references you will have to extract the number's and edit the expression accordingly or probably there might be some options which I'm not yet aware of.

提交回复
热议问题