uom icon indicating copy to clipboard operation
uom copied to clipboard

Units of measurement -- type-safe zero-cost dimensional analysis

Results 151 uom issues
Sort by recently updated
recently updated
newest added

I'm investigating similar ideas like uom and looking at uom's implementation. But I think maybe use unstable feature const generics will make it much simpler. here is the playground link...

`clamp` has two distinct implementations, one in `Ord` (which floats aren't) and another in `f{32,64}`. I don't know how to separate these inside `uom`.

Is there a possibilty to display quantities with automatic "human readable" prefixes? Example: 0.1 s -> 100 ms. As a human one typically chooses the prefix such that that there...

https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html

Hello, First off, I'm a beginner in Rust so I don't expect this PR to be accepted without modifications. Feedback is very welcome. The reson for adding this support is...

uom supports [kilocalories](https://github.com/iliekturtles/uom/blob/master/src/si/energy.rs#L82) as a unit of energy. Having [MET](https://en.wikipedia.org/wiki/Metabolic_equivalent_of_task) defined as well would help with calculating kilocalories in exercise contexts in a type safe way.

I have a PR ready for two new units: * `VolumetricFlux` (`m³·s⁻¹·m⁻²`), a measure of the volume of fluid flowing through a surface per unit of time (equivalent to mean...

hi there! thanks for your work. i want to use uom in code that reads CSVs of velocity data from a user and builds lookup functions from it. i would...

I am not sure if this is even possible at the library level. If it is not, feel free to close this issue. **Issue** If you are writing a library...

We are using this crate heavily in an embedded context. The [defmt framework](https://crates.io/crates/defmt) is a well-known effort by ferrous systems to provide efficient logging and debugging for embedded devices. We...