taRpnCalcSG

This program is simple calculator, written in Python 3.7. Besides basic arithmetic functions, it support the hexadecimal system and calculations of time and date. You can extend the functionality of the calculator by adding your own custom functions.

HLP Button
Calculation modes
Choice of language
Custom Functions

HLP Button

When you click this button, it stays pressed until you select the next button / function. You then get a popup with a description of this button / function.

Calculation modes

DEC

In this mode the program calculates decimal numbers with a precision of 28 ciphers after the decimal point.

HEX

In this mode the program calculates with hexadecimal integers. When switching from the DEC mode, the decimal part of all registers in the stack is removed.

TIME

In this mode the program calculates in time mode with integers. When switching from the DEC mode, the decimal part of all registers in the stack is removed. The values can be entered as H:mm or as minutes. The stack will hold total minutes. The decimal point key will create a colon (:)

DATE

In this mode the program calculates in date mode with integers. When switching from the DEC mode, the decimal part of all registers in the stack is removed. The values can be entered as yyyy-MM-dd or as days. The stack will hold days since 0000-00-00. The decimal point key will create a hyphen (-)

TEXT

In this mode, you can enter any texts which are stored in the stack as Strings. Switching to an other mode is only possible when the stack does not contain any texts. This mode is only useful for Custom Functions, that perform text manipulations (e.g. Base64 encodings, encryption, etc).

Choice of language

By default, the program operates in the current language of the operating system. You can choose another language in the settings. The app supports english and german.

You can add further languages yourself by adding a YAML file for your language in the subfolder 'translations/', e.g. es.yml for spanish. You can also translate this help file into other languages. The help files are in the subfolder 'docs/'.

Custom Functions

You can extend the functionality of the calculator by adding your own custom functions. The custom functions must meet following conditions:

Examples

In the 'samples' subdirectory of the calculator's installation directory, there are example custom functions. In the module 'square.py' there is an (commented out) example for translated texts. You can copy the complete 'customFunctions' folder to the taRpnCalcSG folder in your user home directory.

Interface between custom function and calculator

The stack object passed to the __init__ function has following functions:

The module API has following functions:

The module API has following attributes: