Math

Answered

Error after conversion of calculation

Hi MyScript:

 

About Math, some errors were found. How can I solve them?

 

1. When I write 10+50%, the result after convert is 15. Shouldn't it be 10.5? As shown below:

image


 

2. 2. When I write 20%+20%, I expect the result after convert to be 0.4, which means that after convert is: 20%+20%=0.4. But the results are as follows::

 

image

image

 

Thank you for your time,

 

longjunhao


Best Answer

Dear Long Junhao,


Thank you for contacting us and your questions.


After discussing internally, our solver was though as the "old small" calculators we had 20 years ago in which people were doing "shop calculations" such as "10+50%" (implicitely 50% of 10), thus resulting in 10+10*50%, which in the end is 15.


The short solution is to write 10+1*50%, which will result in 10.5.


Or, you can use an external solver library: for such purpose, you export as MathML or Latex (depending on the input of your library), feed your solver with this input and get the result.


Regarding adding percentages, I submitted an change request to add it in a future release.


Best regards,


Olivier


Answer

Dear Long Junhao,


Thank you for contacting us and your questions.


After discussing internally, our solver was though as the "old small" calculators we had 20 years ago in which people were doing "shop calculations" such as "10+50%" (implicitely 50% of 10), thus resulting in 10+10*50%, which in the end is 15.


The short solution is to write 10+1*50%, which will result in 10.5.


Or, you can use an external solver library: for such purpose, you export as MathML or Latex (depending on the input of your library), feed your solver with this input and get the result.


Regarding adding percentages, I submitted an change request to add it in a future release.


Best regards,


Olivier


1 person likes this

Dear Olivier:


Thanks for your answer.


Longjunhao