calc icon indicating copy to clipboard operation
calc copied to clipboard

A simple command-line calculator written in Go

Results 6 calc issues
Sort by recently updated
recently updated
newest added

Terminal was fixed in #3, but after some testing it seems like the `>` prompt doesn't appear.

bug

This special input will allow the user to switch the output format for the following operations. ``` > 16 * 10^6 1.6E+07 > format(f) > @ 16000000 ``` The format...

Hi. There already is a program by the name `calc`: http://www.isthe.com/chongo/tech/comp/calc/, and it dates back to 1984. It is present in main repositories of many Linux distributions, so it is...

panic: The handle is invalid. goroutine 1 [running]: main.main() M:/GoProjects/src/github.com/alfredxing/calc/main.go:37 +0x8b6

`sin` and `tan` don't seem to work correctly. `sin(pi)` gives `1.2246467991473515E-16` and `tan(pi)` `-1.2246467991473515E-16`, while `cos` works as expected.

The project probably needs to have a bit of documentation on the core functions and structs, to make it easier for forkers to add/customize the features.

enhancement