News:

;) This forum is the property of Proton software developers

Main Menu

Programmers calculator with Mchip float display option

Started by TimB, Mar 06, 2023, 08:15 PM

Previous topic - Next topic

TimB


Hi all

Is there are a programmers calculator that not only lets you enter hex and it converts to ints but you can enter a float and it converts that to something else.

Tim

tumbleweed

#1
I uploaded a few that I've used. Not really calculators... just conversion programs.
There's a slight difference between IEEE-754 and Microchip 32-bit float format (which is what positron uses for 'float' type).
If I remember, the mfp.exe program produces the most accurate results of the bunch.

https://protoncompiler.com/index.php?action=downloads;sa=view;down=17

JonW

Tim
You need to start coding on PC dude and you can do this easily (look at Xojo or Delphi).  For hardware, Casio did 32-bit conversions on FX-992s (unfortunately, no float)  One of the best (non-programmable) calculators of the age.

tumbleweed

Quote from: JONW on Mar 06, 2023, 11:43 PM...and you can do this easily (look at Xojo or Delphi)
Trouble is, most compilers will use IEEE-754 format, which is slightly different.

Obviously, you can write one yourself, but unless you know the ins and outs of the formats why bother?


JonW

Obviously, you can write one yourself, but unless you know the ins and outs of the formats why bother?

 why bother?

Because you want to prove to yourself you can. make a difference.   The SALT of programming. It's like outsmarting Les on a routine. Improbable but possible. and has the potential to be improved upon.

TimB

Thanks tumbleweed

That converter is will be a great help

Yes I should learn to program on a PC'. I'm thinking about Python.

There used to be a programmers calculator called BASECALC https://www.zap.org.au/elec2041-cdrom/utils/basecalc/README.html

It did not have float conversions but I loved the way it worked. The issue is that it seems to have malware. Windows Antivirus kills it as soon as it sees it.

basecalc-corner.png


joesaliba

Tim,

Has you tried the Windows calculator? It has programmer calculator with bit shift, bit wise. No floating point though.


Joe

TimB

Quote from: joesaliba on Mar 07, 2023, 09:56 AMTim,

Has you tried the Windows calculator? It has programmer calculator with bit shift, bit wise. No floating point though.


Joe

Yes but I cannot get on with it.

I'm currently using bincalc  https://sites.google.com/site/bincalc/ but much prefer the old basecalc when it was working