Skip to content

Commit

Permalink
Use ′ and ″ as default short names for arcminute/arcsecond
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Oct 8, 2024
1 parent 11e3ee9 commit ca13e43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions book/src/list-functions-other.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ fn DMS(alpha: Angle) -> List<Angle>

<pre><div class="buttons"><button class="fa fa-play play-button" title="Run this code" aria-label="Run this code" onclick=" window.open('https://numbat.dev/?q=46%2E5858%C2%B0%20%2D%3E%20DMS')""></button></div><code class="language-nbt hljs numbat">>>> 46.5858° -> DMS

= [46°, 35 arcminute, 8.88 arcsecond] [List<Scalar>]
= [46°, 35, 8.88] [List<Scalar>]
</code></pre>

</details>
Expand All @@ -203,7 +203,7 @@ fn DM(alpha: Angle) -> List<Angle>

<pre><div class="buttons"><button class="fa fa-play play-button" title="Run this code" aria-label="Run this code" onclick=" window.open('https://numbat.dev/?q=46%2E5858%C2%B0%20%2D%3E%20DM')""></button></div><code class="language-nbt hljs numbat">>>> 46.5858° -> DM

= [46°, 35.148 arcminute] [List<Scalar>]
= [46°, 35.148] [List<Scalar>]
</code></pre>

</details>
Expand Down
4 changes: 2 additions & 2 deletions numbat/modules/units/si.nbt
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ unit degree: Angle = π / 180 × radian

@name("Minute of arc")
@url("https://en.wikipedia.org/wiki/Minute_and_second_of_arc")
@aliases(arcminutes, arcmin, ′)
@aliases(arcminutes, arcmin, ′: short)
unit arcminute: Angle = 1 / 60 × degree

@name("Second of arc")
@url("https://en.wikipedia.org/wiki/Minute_and_second_of_arc")
@aliases(arcseconds, arcsec, ″)
@aliases(arcseconds, arcsec, ″: short)
unit arcsecond: Angle = 1 / 60 × arcminute

@name("Are")
Expand Down

0 comments on commit ca13e43

Please sign in to comment.