mkulesh / microMathematics

microMathematics Plus - Extended visual calculator
GNU General Public License v3.0
566 stars 68 forks source link

Support for different base calculation #89

Closed iilyak closed 3 years ago

iilyak commented 5 years ago

I was trying to find how to work with not base-10 numbers and couldn't find any documentation. I need to specify and output numbers in arbitrary (for example 2,10,12,16,60) base. Is it supported as units maybe?

Renu-Balhara commented 3 years ago

Do you need a program that takes input number and it's base and display output in any of the arbitrary base (2,10,8 and 16) ? Working with other bases (like 12,60, etc.) seems more complex.

iilyak commented 3 years ago

Do you need a program that takes input number and it's base and display output in any of the arbitrary base (2,10,8 and 16) ?

In my case I needed bases 12 and 60 as well.

Renu-Balhara commented 3 years ago

Do you need a program that takes input number and it's base and display output in any of the arbitrary base (2,10,8 and 16) ?

In my case I needed bases 12 and 60 as well.

Sure, I can add them too. I will be able to provide the program by 7th oct evening, is it fine?

iilyak commented 3 years ago

Sure, I can add them too. I will be able to provide the program by 7th oct evening, is it fine?

Of cause. Thank you for looking into it.

mkulesh commented 3 years ago

Hi @iilyak, Sorry for the radio silence for a while, I worked for an other project last time.

I expanded the result properties by radix selection field, see attached screenshot. The radix can be selected between 2 and 36. If you like to test it, please download and install the latest nightly build from here: https://github.com/mkulesh/microMathematics/raw/autobuild/autobuild/microMathematics-v2.20.1-debug.apk

radix

iilyak commented 3 years ago

Hi @mkulesh, I looked at screenshots it looks good. I was unable to install the apk on my device. It is silently fails to install.

mkulesh commented 3 years ago

Hi @iilyak, this APK was not signed. Depending on Android version you may need to uninstall previously installed signed version in order to install an unsigned. However, I uploaded a new APK that is now signed and can be installed without a problem. Please download again https://github.com/mkulesh/microMathematics/raw/autobuild/autobuild/microMathematics-v2.20.1-release.apk

iilyak commented 3 years ago

As you said I need to uninstall previous version (which was installed from F-Droid store).

I cannot figure out how to bring result properties dialog. I tried a long press on the numeric value and it didn't appear.

mkulesh commented 3 years ago

Hi @iilyak, Just select a whole result formula. The simplest way is to long press on "=" sign and use the button "Expand selection" from the top toolbar if whole formula is not yet selected. When the result formula is selected, a new floating button "Property" will appear: object_properties

mkulesh commented 3 years ago

Released in version 2.20.1