Browse Source

Use ′ and ″ as default short names for arcminute/arcsecond

David Peter 1 year ago
parent
commit
ca13e43344
2 changed files with 4 additions and 4 deletions
  1. 2 2
      book/src/list-functions-other.md
  2. 2 2
      numbat/modules/units/si.nbt

+ 2 - 2
book/src/list-functions-other.md

@@ -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>
@@ -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>

+ 2 - 2
numbat/modules/units/si.nbt

@@ -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")