Awesome
qubit
<div align="center">💥 Visit Website To Use Calculator
</div>Example
<div align="center">💥 Visit Website To Use Calculator
</div>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.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=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!
<a href="https://github.com/abhimanyu003/sttr/graphs/contributors"> <img src="https://contributors-img.web.app/image?repo=abhimanyu003/qubit" /> </a>