Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

calculator

A simple arithmetic calculator and Delphi component that implement the behavior of Casio calculators. Written for Win32 platform.

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Download latest version

Calculator (Version 0.x)

A simple arithmetic calculator and Delphi component that implement the behavior of Casio calculators. Written for Win32 platform.

See TBaseCalc for technical documentation on the TBaseCalc component.

See Changelog for the version history.

Operation

Example Operation Display
(Basic Calculation) [AC] 0
53+123-63 53 [+] 123 [-] 63 [=] 113
963×(23-56) 23 [-] 56 [×] 963 [=] -31779
(56×3-89)÷5,2+63 56 [×] 3 [-] 89 [÷] 5,2 [+] 63 [=] 78,192308
123456×741852 ¹˙ 123456 [×] 741852 [=] 915,8608E
[C] 915,86081
(Constant Calculation) [AC] 0
12+23 23 [+] [+] 12 [=] K 35
78+23 78 [=] K 101
7-5,6 5,6 [-] [-] 7 [=] K 1,4
2-5,6 2 [=] K -3,6
2,3×12 12 [×] [×] 2,3 [=] K 27,6
4,5×12 4,5 [=] K 54
45÷9,6 9,6 [÷] [÷] 45 [=] K 4,6875
78÷9,6 78 [=] K 8,125
(2,3)⁴ 2,3 [×] [×] [=] [=] [=] K 27,9841
(Square a Number)
7² 7 [×] [=] 49
(Correcting Inputs)
2 + 3 4 ²˙ 2 [+] 3 [C] 4 [=] 6
2 + - 7 ³˙ 2 [+] [-] 7 [=] -5
⁴˙ [AC] 0

¹˙ An E error indicator will appear whenever the result of a calculation exceeds 8 digits. Press [C] to clear the error indicator. After that you'll be able to continue the calculation using an aproximate result.

²˙ When you have to correct the value you currently inputing, without deleting the part of the calculation you have input up to the current value, press [C] to clear the displayed value and return to the 0 display. Next input the value you want.

³˙ When you want to correct the arithmetic operator you have just input, without pressing [C], press the key for the correct arithmetic operator.

⁴˙ Press [AC] to completely clear the calculation you're inputing, or to clear a displayed calculation result (produced by pressing the [+] [-] [×] [÷] or [=] key) and its calculation.

Auto Power Off Function

The application will close after 6 minutes from the last key operation.