comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Kilogram constant defined in package System.Dim.Other_Prefixes (s-dmotpr.ads)
Date: Tue, 04 Feb 2014 19:19:27 +0100
Date: 2014-02-04T19:19:27+01:00	[thread overview]
Message-ID: <87iosuu4eo.fsf@ludovic-brenta.org> (raw)
In-Reply-To: ed6b75a5-35f1-4348-a200-653b05485dbb@googlegroups.com

Anh Vo <anhvofrcaus@gmail.com> 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.

  parent reply	other threads:[~2014-02-04 18:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 17:26 Kilogram constant defined in package System.Dim.Other_Prefixes (s-dmotpr.ads) Anh Vo
2014-02-04 17:44 ` adambeneschan
2014-02-04 18:10   ` G.B.
2014-02-04 18:16     ` adambeneschan
2014-02-04 18:22       ` adambeneschan
2014-02-04 18:19 ` Ludovic Brenta [this message]
2014-02-04 19:44   ` Anh Vo
2014-02-05  7:44 ` Yannick Duchêne (Hibou57)
2014-02-05  9:30   ` AdaMagica
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox