sunny/measurement

Types

Represents a physical measurement with a unit

pub type Measurement {
  Measurement(value: Float, unit: String)
}

Constructors

  • Measurement(value: Float, unit: String)

Functions

pub fn to_string(m: Measurement) -> String

Converts a measurement to a string, displaying its unit.

Search Document