The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    What do you think of this calculator i programmed?

    Discussion in 'Windows OS and Software' started by jisaac, Feb 2, 2009.

  1. jisaac

    jisaac Notebook Deity

    Reputations:
    306
    Messages:
    1,141
    Likes Received:
    0
    Trophy Points:
    55
    compiled via realbasic... just wondering if people could report any bugs the may find ( if you have enough time to test it)...
    Download link
    thanks

    there's a couple of things i need to do... as i havent had much time to perfect it... such as repeated operations (when the equals sign is pressed more than once)... perhaps i might add a scientific mode as well....... i think extreme data should work such as dividing a number by 0... which should give syntax error... and dividing 0 by 0 which should say undefined i think....
     
  2. qhn

    qhn Notebook User

    Reputations:
    1,654
    Messages:
    5,955
    Likes Received:
    1
    Trophy Points:
    205
    Cool, will give it a shot.

    cheers ...
     
  3. jisaac

    jisaac Notebook Deity

    Reputations:
    306
    Messages:
    1,141
    Likes Received:
    0
    Trophy Points:
    55
    its actually suprising that it runs about 25% lighter on memory than the built in windows 7 calc... and the code in mine is extremely messy at the moment lol... i guess once i expand the functions ( add a scientific mode etc) memory usage will go up though,,,,

    i'm actually in the midst of creating a vista tweaking utility, with more tweaks than any other software... let me know if anyone is interested in some beta testing :)... and i'll see if i can get a move on with it
     
  4. seanen

    seanen Notebook Enthusiast

    Reputations:
    0
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    5
    Good job with the program!

    Just a contribution from my side: it would be a lot better (if you ask me) if you could make the program to keep the typed numbers displayed even after choosing an arithmetical operation so you can make several calculations at the same time.
     
  5. jisaac

    jisaac Notebook Deity

    Reputations:
    306
    Messages:
    1,141
    Likes Received:
    0
    Trophy Points:
    55
    thanks mate :) i guess that could be done.. i think i'd have to put a bit of the code currently in the equals button into the operation buttons... which would allow multiple operations to be done.
     
  6. seanen

    seanen Notebook Enthusiast

    Reputations:
    0
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    5
    Another thing: basic calculators don't have parenthesis implemented, which I think kind of sucks. Maybe something you could implement? :)
     
  7. nfsnyc

    nfsnyc Notebook Consultant

    Reputations:
    72
    Messages:
    236
    Likes Received:
    0
    Trophy Points:
    30
    Nice job man! How long you programming for??

    Btw, why is 0/0 undefined? Its 0 lol!

    Did you write everything yourself or did you use predefined classes? What language is it in?
     
  8. Pirx

    Pirx Notebook Virtuoso

    Reputations:
    3,001
    Messages:
    3,005
    Likes Received:
    416
    Trophy Points:
    151
    Come again? Seems somebody missed that math class: 0/0 is mathematically undefined.
     
  9. nfsnyc

    nfsnyc Notebook Consultant

    Reputations:
    72
    Messages:
    236
    Likes Received:
    0
    Trophy Points:
    30
    Ya I know its mathematically undefined, but logically its not.

    0/0 should be 0 because 0 x 0 is 0!

    I guess its undefined because x * 0 = 0 so the answer (x) is really all numbers..

    Did I just answer my own question..? I just took pre-calculus too lol..shows how much attention I paid.
     
  10. Pirx

    Pirx Notebook Virtuoso

    Reputations:
    3,001
    Messages:
    3,005
    Likes Received:
    416
    Trophy Points:
    151
    :D So you did...
     
  11. Apollo13

    Apollo13 100% 16:10 Screens

    Reputations:
    1,432
    Messages:
    2,578
    Likes Received:
    210
    Trophy Points:
    81
    Got a bit of an oddity here. I did 2 + 3 and got 5, no problem. But when I hit equals again, I got 7, and then 9. Every other calculator I've ever seen would add 3 in that scenario. You'd probably be better off changing that than trying to implement a new standard.

    I'd also set the default selected item to be the text box. I'm used to firing up Windows Calculator and just being able to start typing, whereas on yours the multiplication symbol is the default selected item.

    It's really sparse on features, though. On the whole I'd still take the one I made three years ago in my junior year of high school because I added some features to mine that Windows Calculator doesn't have, such as a couple types of graphs and linear regression - yours just does plain old arithmetic (which I'd usually do in my head anyways!). But to be fair, mine isn't quite as text-box friendly, and it still messes up on repeated operations. It gets 2 + 5 = 7 and then 12 the next time, but then goes into a Fibonacci sequence. So apparently repeated operations is a common tripping block.

    As for memory usage, don't worry about that until you've got the important features in. My main problem with Windows Calculator is that is doesn't have enough features.

    Add a whole bunch more features and polish everything up mathematically/user input-wise, and then maybe repost. But it offers no real benefit over what everyone already has now.

    On the plus side, seeing its Copy/Paste feature did make me see the Copy/Paste in WinCalc for the first time ever. So that probably will be more than adequate payment for downloading this!