Replies: 8 comments 12 replies
-
That's exactly what Notepad2e claims to do |
Beta Was this translation helpful? Give feedback.
-
They use https://github.com/codeplea/tinyexpr |
Beta Was this translation helpful? Give feedback.
-
I added this feature to the version I distribute. |
Beta Was this translation helpful? Give feedback.
-
I think to implement this, we need another library or modify tinyexpr (exe will be 60 KiB larger) to dynamic load math functions from ucrtbase.dll or msvcrt.dll (there are about 100 math functions after excluding Another solution is load Python DLL (assume most user have Python installed), and use PyRun_String() to evaluate expression. |
Beta Was this translation helpful? Give feedback.
-
Is there any news on this implementation? In which release could it be included? 😉 |
Beta Was this translation helpful? Give feedback.
-
Well, I'd say that it would be enough for 90% of the tasks, at least for mine... 😂 If you then wanted to add other features such as trigonometric calculations or other, you would always do it in time... 😉 |
Beta Was this translation helpful? Give feedback.
-
目前这个功能是有的吗,怎么使用的呢,我是不是用法不对 |
Beta Was this translation helpful? Give feedback.
-
Hi @zufuliu , in the next few weeks maybe I could have a few hours to work on this feature. Just one question... Where do we print the results of the calculations? In the selected line or in the ststusbar? I would opt for the second one.. Let me know what you think. |
Beta Was this translation helpful? Give feedback.
-
Hello.
Often, while writing in Notepad2-mod, I need to do a simple calculation, and I use a calculator app to do it.
I realized that it would be nice to be able to do simple calculations in Notepad2-mod.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions