A unit conversion tool in Rust. The name is a subset of frink
,
another unit conversion tool, to indicate that this tool implements a
subset of frink's features.
Select features: - High-precision bignum rational arithmetic - Detailed error messages - IRC bot
cargo install rink
```
kWh/year -> W approx. 0.1140795 W (power) ```
```
W -> J Conformance error Left side: 1 watt (power) Right side: 1 joule (energy) Suggestion: multiply left side by time multiply right side by frequency ```
```
gallon gasoline -> kWh approx. 36.63388 kWh (energy) ```
```
googol^100 1.0e10000 (dimensionless) ```
Add this to your Cargo.toml
:
toml
[dependencies]
rink = "0.3"
and this to your crate root:
rust
extern crate rink;
Rink source code is licensed under the Mozilla Public License, version 2. See LICENSE-MPL for details.
The data file definitions.units
is licensed under the GNU General
Public License, version 3. See LICENSE-GPL for details.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work will grant the rights lined out in the MPL, including larger works with secondary licenses.