Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/george-miao/calc
https://github.com/george-miao/calc
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/george-miao/calc
- Owner: George-Miao
- Created: 2022-12-25T00:20:40.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-25T00:20:43.000Z (almost 2 years ago)
- Last Synced: 2024-10-23T21:25:49.039Z (2 months ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calc - a simple calculator language
## Design
Simple and easy-to-use
Arithmetic operations:
```
// Add
> 10.1 + 1000
< 1010.1
// Times and referencing previous results
> @1 * 8
< 8080.8
// Minus and referencing multiple previous results
> @1 - @2
< 7070.7
// Using functions
> sin(@1) // or sin @1
< 0.85474701071
```