🧮 Super duper simple calculator

Related tags

Utilities calce
Overview

calce

calce

Example

2 + 2

sin( 90 ) + cos ( 120 )
sqrt(144) + 12
ceil ( 12.12 ) + 22
floor( 12.12) + 22

25 % of 100
25 % on 100

// Conversions
1024 kb to mb
22 kg to g

Operations

Basic Math

add         sub         multiply
divide      power       modulus
rightShift  leftShift
percentOf   percentOn

Examples:

2 + 2
2 plus 2
2 ^ 2
10 %of 100
10 %on 100
100 >> 2
100 << 2

Constants

pi
e
tau

Functions

All trigonometric functions expect input in degrees.

sin     cos     tan
asin    acos    atan
sinh    cosh    tanh
log     sqrt    cbrt
round   ceil    floor

Examples:

round ( 2.4 )
ceil ( 2.3 )
sin ( 90 )
cos ( 90 )
ceil ( 2.2 )
floor(3.3)

Supported Conversions

  • Angle
  • Area
  • Digital Information
  • Length
  • Mass
  • Speed
  • Time
  • Temperature

Development

Stack calce is using

  • Rust as programing language
  • Pest for parser + grammar
  • Yew for webassembly
  • Tailwind for CSS styles

Local Development + Enhancement

  • Clone the repo
  • Pest Grammar is defined in src/grammar.pest file.
  • Conversion chart is src/convert_chart.rs

To start the project locally on :8080 run

trunk serve

Before creating pull request you can run sanity checks.

cargo fmt
cargo check
cargo test

Final build ( Optional )

trunk build --release --public-url=calce

Contribution

This project welcomes your PR and issues. For example, refactoring, adding features, correcting English, etc. If you need any help, you can contact me on Twitter.

Thanks to all the people who already contributed!

License

MIT

You might also like...
Simple comparison app for iRacing car setups.
Simple comparison app for iRacing car setups.

CarTunes Simple comparison app for iRacing car setups. About Export a setup in the iRacing garage and CarTunes will let you compare it with other setu

Simple Spreadsheet editor written in Rust

Rexcel Simple Spreadsheet editor written in Rust Keyboard Shortcuts: CTRL + S = Save CTRL + Q = Quit CTRL + W + Save And Quit CTRL + ALT + S = Sav

simple epoch-based reclamation

ebr a simple epoch-based reclamation (EBR) library with low cacheline ping-pong. use ebr::Ebr; let mut ebr: EbrBoxu64 = Ebr::default(); let mut

A simple omegle API written in Rust

omegalul-rs omegalul-rs is a work-in-progress opensource library for building Omegle clients. Features Current Features Fetching random server from om

Simple interoperability between C++ coroutines and asynchronous Rust

cxx-async Overview cxx-async is a Rust crate that extends the cxx library to provide seamless interoperability between asynchronous Rust code using as

Simple fake AWS Cognito User Pool API server for development.

Fakey Cognito 🏡 Homepage Simple fake AWS Cognito API server for development. ✅ Implemented features AdminXxx on User Pools API. Get Started # run wit

Simple ansi colors

Simple ansi colors

Teleport is a simple application for sending files from Point A to Point B

Teleporter Teleporter is a small utility in the vein of netcat to send files quickly from point A to point B. It is more convenient than netcat in tha

Extract tokens by simple condition expression.

Condex Extract tokens by simple condition expression. | Docs | Latest Note | [dependencies]

in progress pretty printing calculator language

in progress pretty printing calculator language

Mikail Khan 373 Dec 24, 2022
Simple timer for your terminal

consoleTimer Simple timer that allows you to initiate countdown from N seconds. Usage: consoletimer [time in seconds] consoletimer [time in minutes]m

Arthur 20 Apr 4, 2022
Simple tool for scaffolding

quick-skeleton tldr; Lightweight replacement for yeoman or slush. Powered by handlebars. This is a scaffolding tool to save you hours of writing boile

Arthur 23 Apr 21, 2022
Simple git/hg tui client focused on keyboard shortcuts

verco A simple Git/Hg tui client focused on keyboard shortcuts Screenshots Platforms This project uses Cargo and pure Rust stable and works on latest

Matheus Lessa Rodrigues 214 Dec 26, 2022
Simple ray tracer written in Rust

Simple ray tracer written in Rust from scratch I've just finished my first semester at the Faculty of Applied Mathematics and Computer Science at the

Vladislav 190 Dec 21, 2022
Czkawka is a simple, fast and easy to use app to remove unnecessary files from your computer.

Multi functional app to find duplicates, empty folders, similar images etc.

Rafał Mikrut 9.2k Jan 4, 2023
Simple popup for using marks in Sway

Simple popup for using marks in Sway This allows you to use vim-like marks in sway easily. Usage: bindsym --to-code $mod+m exec sway-marker mark binds

null 21 Dec 21, 2022
Simple RSA VDF in Rust

Simple RSA VDF in Rust

[ZenGo X] 16 Jul 22, 2022
Simple color picker that lets the user create harmonic palettes with ease.

epick Simple color picker that lets the user create harmonic palettes with ease. Get it You can checkout the web demo over here or get a native binary

Wojciech Kępka 101 Dec 19, 2022
Simple pomodoro timer with notifications

omo Simple pomodoro timer with notifications Installation

Guy Edwards 22 Dec 21, 2022