gleameter

Package Version Hex Docs

An implementation of the International System of Units (SI) in Gleam

gleam add gleameter@1
import gleameter.{Value}
import gleameter/units/meter.{kilometer}
import gleameter/units/second.{hour}

pub fn main() {
  let car_speed = Value(30, kilometer |> gleameter.divided(by: hour))
}

Further documentation can be found at https://hexdocs.pm/gleameter.

Search Document