Skip to content

xdevelnet/n0calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

n0calc

n0calc is extremely simple but handy GUI calculator. It was created just for fun and improving my GUI creation skills. Used toolkit - GTK3 (probably compatiable with GTK2).

n0calc preview

Calculator evaluates expression at specified format:

operand1*operand2

where * is operator, can be '+', '-', '*', '/', operand1 and operand2 are operands.

Digital keyboard is supported. Wrong and incompatiable expressions are handled with informative error message. Round brackets, ^ operator, and other stuff are not supported. White spaces normalization will be added soon.

How to build

1) Build via cmake

Download & install development gtk3 packages using OS package manager. Download latest (at least 3.2) cmake release. cd to downloaded repository. Then:

$ mkdir build
$ cd build
$ cmake ..
$ make

2) Build manually

Download & install development gtk3 packages using OS package manager. cd to downloaded repository. Then:

$ gcc `pkg-config --cflags gtk+-3.0` -o n0calc main.c `pkg-config --libs gtk+-3.0` -lm

F.A.Q.

Q: There is no expression parser. Impossible to use more complicated expressions than operand1*operand2.

A: Check out bold text at the top of README.md

Q: You probably should split calculating logic, parsing, showing result to interface to 3 different functions. Huh?

A: No need to do that just because I wasn't planning to do full featured calculator. Because there is already thousands of calculators. No need to write 1 more. Again, read bold text above.

About

GTK3 simple calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published