Closed SoappGuy closed 4 months ago
Thanks for your feedback.
Sadly, the library you linked seems to be a C++ library mainly and Android development requires Java / Kotlin code. This means we can't simply import the library, and we would need to either find a port of the library or write functionality ourselves.
That said, the current calculator already supports some more advanced calculations, like certain functions (sqrt
, ceiling
, sin
, etc.), modulo, and power.
You can find a non-exhaustive list of what the integrated calculator is capable of here: Integrated Calculator.
I hope this is satisfactory.
Thanks for the list of calculator features, it will come in handy. Now, about libqalculate, I found this repository, it looks like the library can be compiled into .arr and then used in Java and Kotlin projects, and it's also available in Maven Central, so it can be easily added to a project via build.gradle. It would be really cool to integrate such a powerful thing into search, and it's quite possible (I'm not really an Android developer, so I have no idea what I'm talking about).
Anyway, it's just an idea, maybe it's too complicated to integrate this library, I'm just bringing this information to you guys, thanks for your attention.
Thanks for linking a port for Android. We will check it out and see if it provides much more functionality that we deem useful.
We have taken a closer look, and sadly, the library's license conflicts with our own, making it impossible for us to use it.
Are you happy with the current calculator's abilities or are you missing certain functionality?
Current calculator is OK, not amazing, but OK. If it is not possible to use this library I'm closing issue.
The only thing missing for me in the calculator right now is percentage calculation & conversion calculation. For example when entering 100*5% would be great to have it calculate the 5 percent of 100. And unit conversion like lbs to kg. Sesame had this but now that integration has been discontinued there's no way to use this functionality. Would be great if this added in the future.
@Plazzmex Thanks for the suggestions. Since I think this is past the original idea of this issue, I have created a new issue for unit conversion: #2832
About the percentage calculator, we are unsure, but will discuss this.
Is your feature request related to a problem?
Now there's a simple calculator in search, but imagine how cool it would be to have something like qalculate instead! More mathematical operations, conversion of different units of measurement, and so on.
Describe the solution you'd like
It may be possible to use libqalculate for the implementation (I'm not sure how much its license would interfere), but even without it, adding simple conversions and math functions shouldn't be too difficult.
Feature Request Procedure