comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+valid_for_reply_from_news@pvv.org>
Subject: Re: Macks - adding unit constants?
Date: Mon, 3 Nov 2003 14:24:55 +0000 (UTC)
Date: 2003-11-03T14:24:55+00:00	[thread overview]
Message-ID: <slrnbqcp9n.eeq.randhol+valid_for_reply_from_news@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: 3FA63FED.9050705@crs4.it

On 2003-11-03, Jacob Sparre Andersen <sparre@crs4.it> wrote:
> Preben Randhol wrote:
>> On 2003-10-17, Jacob Sparre Andersen <sparre@crs4.it> wrote:
>
>>>It is very impractical to have to remember to write "0.000_86" and not 
>>>"0.86", when you put constants in your code.  I prefer to have to write 
>>>"0.000_86 * m" (or "0.86 * mm") so there is an explicit conversion from 
>>>nondimensional to dimensional units.  Since this preference is rather 
>>>strong, I have decided to use a hand-written units package for this project.
>> 
>> why not 8.6E-4 ?

As 0.000_86 etc.. where you can get the 0's wrong. :-)
>
> As opposed to what?  It still doesn't tell which units we are working
> in.  Dimensionless numbers should not be able to suddenly become
> dimensioned numbers without som kind of explicit conversion.

well you can write 

   8.6E-4 * m

Preben
-- 
"Saving keystrokes is the job of the text editor, not the programming
 language."



  reply	other threads:[~2003-11-03 14:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-09  7:57 Macks - adding unit constants? Jacob Sparre Andersen
2003-10-14 16:01 ` Stephen Leake
2003-10-17 20:23   ` Jacob Sparre Andersen
2003-10-20 14:48     ` Preben Randhol
2003-11-03 11:45       ` Jacob Sparre Andersen
2003-11-03 14:24         ` Preben Randhol [this message]
2003-10-20 19:06     ` Stephen Leake
2003-11-03 11:45       ` Jacob Sparre Andersen
  -- strict thread matches above, loose matches on Subject: below --
2003-10-20 11:08 christoph.grein
2003-11-03 11:57 christoph.grein
2003-11-05 23:38 ` Jacob Sparre Andersen
2003-11-06  9:58 christoph.grein
replies disabled

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