A handy calculator, based on Rust and WebAssembly.
Last updated Apr 3, 2026
96
Stars
6
Forks
1
Issues
0
Stars/day
Attention Score
14
Topics
Language breakdown
Rust 99.2%
HTML 0.8%
โธ Files
click to expand
README
qubit
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 qubit is using
Local Development + Enhancement
- Clone the repo
- Pest Grammar is defined in
src/grammar.pestfile. - Conversion chart is
src/convert_chart.rs
: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=qubit
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
๐ More in this category

