![]() 1īut if RPN is your thing, and you want to use or modify this specialty calculator, you can download the layout and the set of Not sure what you mean about “if there isn’t already a value in Y”, because AC sets to 0. That’s fine for Drang, but it might not be fine for you. And because RPN Push X is only available in RPN mode, I couldn’t write a function that worked the way I wanted in Algebraic mode. See the RPN Push X command in the second to last line? At present, that’s the only way PCalc can put a value into the y-register if there isn’t one already there. Unfortunately, this isn’t just because I prefer RPN. You’ve no doubt noticed that I’ve shown the layout in RPN mode. There are similar functions for the other tip percentages. The calculation is done through a user-defined function: What I like about this result is that the two numbers are in the order you typically see on a credit card receipt. If I had PCalc’s display mode set to Accounting, both values would have two digits after the decimal point, but since I don’t use Accounting mode normally, I haven’t set it here. The total has been rounded: rounded down if it’s less than 10¢ above a whole-dollar about and rounded up otherwise. The y-register has the amount of the tip and the x-register has the total. But in the most common case, you enter the amount of the checkĪnd then tap one of the percentage buttons along the top. The layout has more than just digit entry, because I figured you sometimes need to do some elementary math. I decided to try my hand at doing the same thing within PCalc. The idea behind all of them is to present a clean interface that makes it easy to enter the amount of the check and quickly return the tip and the total. Tip calculators have been a heavily populated subgenre of the App Store for as long as there’s been App Store. ![]() Here’s an example that took very little thought. With a little thought and a little programming, you could turn PCalc into a whole series of special-purpose calculators. Last week, in my post about PCalc 3.3, I said If you have a general question related to any of the programs on the site, or would like some additional info related to the downloads in general, then check out the downloads FAQ.Next post Previous post A simple PCalc specialty calculator PCalc works on all versions of Windows, from Window 95 to Windows 7 and everything inbetween (including XP, Vista, Win2k, etc). AnalogX PCalc allows you to enter any equation in the EXACT same format as C/C++, and it will process it with the same precedence, giving you the results in a variety of formats! PCalc also supports the use of user-defined variables, and also has most of the common constants used already defined. Forget putting up lame buttons with numbers on them that's fine in the real world, but hardly useful in a GUI, let's instead focus on functionality, and that's just what I did. Programmers around the world, your prayers have been answered - Behold AnalogX PCalc, the ULTIMATE programmers calculator. I'm sorry, but displaying the results in hex and/or binary doesn't make a calculator a 'programmer's calculator', nor does making 42 a constant in it either! Someone should do something about this, and someone has. If you're a programmer, you've probably downloaded a so-called 'programmer's calculator' at least once in your life, only to be sorely disappointed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |