elm-units icon indicating copy to clipboard operation
elm-units copied to clipboard

Simple, safe and convenient unit types and conversions for Elm

Results 17 elm-units issues
Sort by recently updated
recently updated
newest added

The `Quantity` API allows for the wrapped value to be any numeric value. In some cases, units that are less than zero are not possible, and it would be nice...

I noticed that `elm-test-rs` could not run elm-units tests because the tests use the `Random` module without specifying a test dependency to `elm/random`. As such, `elm-test-rs` fails at the compilation...

For use on apps/packages that use `elm-units`; suggest things like - Use `Quantity.half` instead of `Quantity.multiplyBy 0.5` or `Quantity.divideBy 2` - Use `Quantity.twice` instead of `Quanttiy.multiplyBy 2`

It's not always obvious that you can use functions in the `Quantity` module to work with `Length`, `Duration` etc. values; could be useful to add something like this to the...

All just no-ops that just convert between equivalent units types: - `Force.energyPerLength : Quantity Float (Rate Joules Meters) -> Force` - `Force.asEnergyPerLength : Force -> Quantity Float (Rate Joules Meters)`...

breaking change

I'm working on adding the ability to play sine/square/sawtooth/triangle waves to `elm-audio`. Currently `elm-audio` has it's own `type alias Frequency = Quantity Float (Rate Cycles Seconds)` and a `cyclesPerSecond :...

I think there is an interesting challenge related to elm-units, which is how to format them for human consumption. For example, ```elm Length.meters 12000.3 ``` could be shown as: -...

I wanted to represent bitrate, aka bits per second, when I noticed there isn't a module for bits. I guess there would be two units, `Bits` and `Bytes`, with helper...

Here's a list of modules that I'd like to add at some point - pull requests for any of these are welcome! (Take a look at existing modules for inspiration.)...

help wanted
Hacktoberfest

Seems that multiplication/division by a `Float` is more common than multiplication/division by another `Quantity`, so would probably be a net savings to use the shorter names for the `Float` case...

breaking change