[gnome-calculator: 1/2] Correct Astronomical unit (to 149597870700 m)




commit 81cd8defc982110579ad1adae570fa412de4a841
Author: Thomas Nilsson <thomas nilsson irfu se>
Date:   Mon Aug 17 13:22:57 2020 +0000

    Correct Astronomical unit (to 149597870700 m)
    
    The IAU changed the definition back in 2012 so that 1 au == 149 597 870 700 m exactly, the BIPM then 
followed in recognizing this value.
    
    Ref:
    https://www.nature.com/news/the-astronomical-unit-gets-fixed-1.11416 (doi:10.1038/nature.2012.11416)
    https://www.bipm.org/utils/common/pdf/si-brochure/SI-Brochure-9.pdf (latest brochure, specifically 
Tableau 8)

 lib/unit.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/unit.vala b/lib/unit.vala
index 4552e4f9..e2b57ee9 100644
--- a/lib/unit.vala
+++ b/lib/unit.vala
@@ -42,7 +42,7 @@ public class UnitManager : Object
         angle_category.add_unit (new Unit ("gradian", _("Gradians"), dpgettext2 (null, "unit-format", "%s 
gradians"), "π*x/200", "200x/π", dpgettext2 (null, "unit-symbols", "gradian,gradians,grad")));
         length_category.add_unit (new Unit ("parsec", _("Parsecs"), dpgettext2 (null, "unit-format", "%s 
pc"), "30857000000000000x", "x/30857000000000000", dpgettext2 (null, "unit-symbols", "parsec,parsecs,pc")));
         length_category.add_unit (new Unit ("lightyear", _("Light Years"), dpgettext2 (null, "unit-format", 
"%s ly"), "9460730472580800x", "x/9460730472580800", dpgettext2 (null, "unit-symbols", 
"lightyear,lightyears,ly")));
-        length_category.add_unit (new Unit ("astronomical-unit", _("Astronomical Units"), dpgettext2 (null, 
"unit-format", "%s au"), "149597870691x", "x/149597870691", dpgettext2 (null, "unit-symbols", "au")));
+        length_category.add_unit (new Unit ("astronomical-unit", _("Astronomical Units"), dpgettext2 (null, 
"unit-format", "%s au"), "149597870700x", "x/149597870700", dpgettext2 (null, "unit-symbols", "au")));
         length_category.add_unit (new Unit ("rack-unit", _("Rack Units"), dpgettext2 (null, "unit-format", 
"%sU"), "x/22.49718785151856", "22.49718785151856x", dpgettext2 (null, "unit-symbols", "U")));
         length_category.add_unit (new Unit ("nautical-mile", _("Nautical Miles"), dpgettext2 (null, 
"unit-format", "%s nmi"), "1852x", "x/1852", dpgettext2 (null, "unit-symbols", "nmi")));
         length_category.add_unit (new Unit ("mile", _("Miles"), dpgettext2 (null, "unit-format", "%s mi"), 
"1609.344x", "x/1609.344", dpgettext2 (null, "unit-symbols", "mile,miles,mi")));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]