New calculator for ReactOS

All development related issues welcome

Moderator: Moderator Team

Carlo Bramix
Posts: 282
Joined: Thu Jan 04, 2007 12:43 am
Location: Italy

Post by Carlo Bramix » Wed May 02, 2007 3:41 pm

mvent2 wrote:With only 0 in the calculator, press the decimal point (. or ,) then +/-. Then type in some numbers. The 0 stays out in front.
mvent2 wrote:I can divide by 0. It will always return 1.
I fixed both bugs.
Thanks a lot.
I also found and fixed another minor bug: if you press [Exp] you will enter into scientific input mode even if the output display shows zero.

Sincerely,

Carlo Bramini

Carlo Bramix
Posts: 282
Joined: Thu Jan 04, 2007 12:43 am
Location: Italy

Post by Carlo Bramix » Thu May 03, 2007 7:54 pm

ROSFan wrote:Wow, good work!

What i miss is higher precision. I often need to calculate something like log(8192!)/log(2) (it means: 8192 n! log / 2 log)
Windows calc is the only prog I know which can do that.
Previously, if you pressed [pi] button you could see 3.14159 into the output display.
Now you will see 3.14159265358979323846 instead.
And this is valid for all numbers, not only for Pi.
The limit for the factorial is 170 because I still use doubles.

I was going to write few things and add support for using GMP (the GNU MultiPrecision library) but I think that for now the current precision is quite enough for common mortals...

Sincerely,

Carlo Bramini.
Last edited by Carlo Bramix on Fri May 04, 2007 7:08 pm, edited 1 time in total.

Carlo Bramix
Posts: 282
Joined: Thu Jan 04, 2007 12:43 am
Location: Italy

Post by Carlo Bramix » Fri May 04, 2007 7:06 pm

ReactOS Calc 1.05 has been released.
It fixes the few bugs reported here and it's available at the usual address.

Sincerely,

Carlo Bramini.

mvent2
Posts: 46
Joined: Sun Jul 30, 2006 1:59 pm

Post by mvent2 » Sat May 05, 2007 4:59 am

Nice 8)

I have more issues for you :lol: Type in an integer (no decimals) into the calculator, then go to Edit > Copy. Then paste into a different program. Notice how ReactOS Calc copied the dot at the end as well, even though there is no decimal places afterwards.

Also, press pi then +/-. The signs aren't switched. You also can't switch the sign of the result of any expression.

Carlo Bramix
Posts: 282
Joined: Thu Jan 04, 2007 12:43 am
Location: Italy

Post by Carlo Bramix » Tue May 22, 2007 12:06 pm

ReactOS Calc 1.06 has been released.
It fixes some bugs and it includes the italian translation for the help file.

Sincerely,

Carlo Bramini

Remialdo
Posts: 38
Joined: Mon Jun 19, 2006 11:44 am
Location: TXAN

Post by Remialdo » Sat May 26, 2007 4:31 pm

what about to add a unit conversor, i think it would be as necesary as the ciencific mode and if we can be better than MS we must be

Carlo Bramix
Posts: 282
Joined: Thu Jan 04, 2007 12:43 am
Location: Italy

Post by Carlo Bramix » Mon May 28, 2007 4:58 pm

Remialdo wrote:what about to add a unit conversor, i think it would be as necesary as the ciencific mode and if we can be better than MS we must be
It could be a good idea...
However, I must say that I don't like how Microsoft did it into its calculator plus.
If I will did it, I would like to open a child dialog box with selections for class (currency, distance, weight, etc), type for input number (example: American Dollars) and the type for output number (example: european euro).
If you will press a "convert" button (or you will type its shortcut from keyboard and the conversion dialog box is open), the value shown into into the output display will be read and then the result will be transferred to it.

So, I can add a voice into the "View" menu for enable/disable the conversion dialog box. This thing is a bit different from the layout originally made by Microsoft, but I think it should have a better pratical usage (it works with both standard and scientific layouts) and it's easier to implement and maintain.

Some opinions from other users about this topic would be good, because in reality I'm not a true expert of "designer of user interfaces"...

Sincerely,

Carlo Bramini

Haos
Test Team
Posts: 2954
Joined: Thu Mar 22, 2007 5:42 am
Contact:

Post by Haos » Sat Jul 21, 2007 5:28 pm

Could you please provide a link for the sources?

preston
Developer
Posts: 272
Joined: Wed Sep 27, 2006 8:19 pm
Location: Prague, Czech Republic

Post by preston » Sat Jul 21, 2007 5:52 pm

Haos wrote:Could you please provide a link for the sources?
it's on the first page - http://sourceforge.net/projects/reactos-calc/

Remialdo
Posts: 38
Joined: Mon Jun 19, 2006 11:44 am
Location: TXAN

bug?

Post by Remialdo » Wed Sep 05, 2007 7:01 pm

I post in sourceforge, but i don´t know if you have seen it.
In version 1.06 and i found this:
14+14+6.3+6.3= 40.5999999 no 40.6

Carlo Bramix
Posts: 282
Joined: Thu Jan 04, 2007 12:43 am
Location: Italy

Post by Carlo Bramix » Thu Sep 06, 2007 9:51 am

Thanks, I didn't see my sourceforge pages for a while...
I'm able to reproduce the problem and I will try to solve it.

Sincerely,

Carlo Bramini

ThePhysicist
Developer
Posts: 508
Joined: Mon Apr 25, 2005 12:46 pm

Post by ThePhysicist » Sat Oct 13, 2007 11:56 pm

Any news about ros-calc? We currently found several problems with wine calc, wich is really a mess imo and I'd be happy to import ros-calc into our tree.
Requirements are:
- it compiles in our tree (would be great if someone could provide an rbuild file)
- major bugs are solved

If you think it's ready to be imported, please let me or any other dev know.

Carlo Bramix
Posts: 282
Joined: Thu Jan 04, 2007 12:43 am
Location: Italy

Post by Carlo Bramix » Mon Oct 15, 2007 5:30 pm

Hello,
Actually, I completed only three big changes into the ReactOS Calculator:
1) I already changed the resource files to be compatible with ReactOS standard: there is a /lang directory with resource files in them; at the moment there are only en-US.rc and it-IT.rc
2) Now, it can also support GNU multi-precision library. When it is compiled with this library, it can use an internal precision of 512 bit and up to 80 decimal numbers on the output display.
3) Fixed the bug reported by Remialdo.

Still in the TODO:
1) fix documentation with newer changes.
2) Make "libgmp-3.dll" presence as optional (with a LoadLibrary), if it isn't detected, it will work in the old way (at the moment, the LibGMP support is done at compile time).
3) Complete the measure converter (currently, it has the lowest priority).
4) I was also thinking to remove the About dialog box and just call ShellAbout() instead, for simplify a bit the job to translators.

Known issues (to me) when executing into ReactOS:
1) keyboard doesn't work well (see bug #2557)
2) The radio buttons don't keep the checks and they aren't redrawn unless the entire window is refreshed.
3) Focus isn't placed on the hidden control.

Unfortunately, I don't think I can complete everything this week, probably I will be able to finish them in the next week because little free time.
Btw, how do you think you can compile the help files with the build system?
As I know, they can be built only with the (free) Microsoft HTML Help Workshop.

Sincerely,

Carlo Bramini

ThePhysicist
Developer
Posts: 508
Joined: Mon Apr 25, 2005 12:46 pm

Post by ThePhysicist » Mon Nov 12, 2007 2:52 am

#2557 is fixed, now it's your turn ;-)

Carlo Bramix
Posts: 282
Joined: Thu Jan 04, 2007 12:43 am
Location: Italy

Post by Carlo Bramix » Thu Dec 20, 2007 2:59 pm

Hello!
ReactOS Calc 1.07 has been released.
Interested people can grab it from here:

http://sourceforge.net/projects/reactos-calc/

Sincerely,

Carlo Bramini

Locked

Who is online

Users browsing this forum: No registered users and 9 guests