Skip to content

Commit

Permalink
Document how to print to preferred (SI) units. (PainterQubits#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvist authored and ajkeller34 committed Oct 15, 2019
1 parent 18d96fb commit dd666f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ julia> mod(1hr+3minute+5s, 24s)
17//1 s
```

One useful interactive function is being able to convert to preferred (in this case SI) units.

```jldoctest
julia> upreferred(F/m)
A^2 s^4 kg^-1 m^-3
```

!!! note
Quantities in `°C` or `⁠°F` always unit-convert under an affine transformation that takes
their relative scales into account. To avoid ambiguities that can lead to incorrect
Expand Down

0 comments on commit dd666f9

Please sign in to comment.