{"repo":"kasper9n/cpc","free":true,"listed":false,"github":"https://github.com/kasper9n/cpc","clone":"git clone https://github.com/kasper9n/cpc.git","description":"Text calculator with support for units and conversion","language":"Rust","stars":161,"topics":["conversion","math","calculator","units","units-converter","converter","cli","library","package","website"],"license":"AGPL-3.0","category":"cli-tools","readme_excerpt":"cpc calculation + conversion cpc calculates complex strings of math, with support for units and conversion. 128-bit decimal floating points are used for high accuracy. For example 1tonne 1sqm / 2second^3 / 5ampere results in 100 volts . List of all supported units Web Interface Try it out at cpc.kasper.space CLI Installation Install using cargo : To install it manually, grab the appropriate binary from the GitHub Releases page and place it wherever you normally place binaries on your OS. CLI Usage CLI REPL Usage Examples Supported unit types - Normal numbers - Area - Currency - Digital storage (bytes etc) - Electric current - Energy - FLOPS - Frequency - Length - Mass - Power - Pressure - Resistance - Speed - Temperature - Time - Voltage - Volume API Installation Add cpc as a dependency in Cargo.toml . API Usage Accuracy Inexact results are always indicated with ≈ . 128-bit Decimal Floating Point (d128) numbers are used for high accuracy, and prevents most floating-point errors. Dev Instructions Get started Install Rust. Run cpc with a CLI argument as input: Run in verbose mode, which shows some extra logs: Run tests: Build: Adding a unit Nice resources for adding units: - https://wolframalpha.com - https://github.com/ryantenney/gnu-units/blob/master/units.dat - https://support.google.com/websearch/answer/3284611 (unit list) - https://translatorscafe.com/unit-converter (unit conversion) - https://calculateme.com (unit conversion) - https://wikipedia.org 1. Add the unit In src","default_branch":null,"files":null,"tree":[],"storefront":"/r/kasper9n","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kasper9n/cpc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}