From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Kilogram constant defined in package System.Dim.Other_Prefixes (s-dmotpr.ads) Date: Tue, 04 Feb 2014 19:19:27 +0100 Organization: A noiseless patient Spider Message-ID: <87iosuu4eo.fsf@ludovic-brenta.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="8f411f84498df1d36438d2b85293f034"; logging-data="30525"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+m/yz2pm8cemZHfBbTQPbL" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:W7Aq7iTTsSD85RZRHhASAk3l90I= sha1:a00ny2vPSIb4lfeXXL7RdTwxnw4= Xref: news.eternal-september.org comp.lang.ada:18380 Date: 2014-02-04T19:19:27+01:00 List-Id: Anh Vo writes: > The Kilogram constants defined in package System.Dim.Other_Prefixes > (s-dmotpr.ads) look different compared to others such as Meter, > Second,... In addition, the values do not match with names in the > comments on the right side. I would like to know why. By the way, the > Meter, Kilogram and Second constant are repeated here for easy > discussion. Because the base SI unit for weight is not gram, it is kilogram. This explains the difference in exponents. Also, in s-dimmks.ads, note how the gram is defined: ug : constant Mass := 1.0E-09; -- micro (u) mg : constant Mass := 1.0E-06; -- milli cg : constant Mass := 1.0E-05; -- centi dg : constant Mass := 1.0E-04; -- deci g : constant Mass := 1.0E-03; -- gram dag : constant Mass := 1.0E-02; -- deka hg : constant Mass := 1.0E-01; -- hecto Meg : constant Mass := 1.0E+03; -- mega -- Ludovic Brenta.