Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Goju-Ryu committed Sep 29, 2024
1 parent a951c12 commit dfaae9f
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions book/src/list-functions-other.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,44 +73,43 @@ fn element(pattern: String) -> ChemicalElement

Defined in: `units::mixed`

### `unit_list` (Unit list)
Convert a value to a mixed representation using the provided units.

```nbt
fn unit_list<D: Dim>(units: List<D>, value: D) -> List<D>
```

### `DMS` (Degrees, minutes, seconds)
Convert an angle to a mixed degrees, (arc)minutes, and (arc)seconds representation. Also called sexagesimal degree notation.
More information [here](https://en.wikipedia.org/wiki/Sexagesimal_degree).

```nbt
fn DMS(alpha: Angle) -> String
fn DMS(alpha: Angle) -> List<Angle>
```

### `DM` (Degrees, decimal minutes)
Convert an angle to a mixed degrees and decimal minutes representation.
More information [here](https://en.wikipedia.org/wiki/Decimal_degrees).

```nbt
fn DM(alpha: Angle) -> String
fn DM(alpha: Angle) -> List<Angle>
```

### `feet_and_inches` (Feet and inches)
Convert a length to a mixed feet and inches representation.
More information [here](https://en.wikipedia.org/wiki/Foot_(unit)).

```nbt
fn feet_and_inches(length: Length) -> String
fn feet_and_inches(length: Length) -> List<Length>
```

### `pounds_and_ounces` (Pounds and ounces)
Convert a mass to a mixed pounds and ounces representation.
More information [here](https://en.wikipedia.org/wiki/Pound_(mass)).

```nbt
fn pounds_and_ounces(mass: Mass) -> String
```

### `unit_list` (Unit list)
Converts a value to a mixed unit representation.
More information [here](https://www.gnu.org/software/units/manual/html_node/Unit-Lists.html)

```nbt
fn unit_list<D: Dim>(units: List<D>, value: D) -> List<D>
fn pounds_and_ounces(mass: Mass) -> List<Mass>
```

## Temperature conversion
Expand Down

0 comments on commit dfaae9f

Please sign in to comment.