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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,730a7c3edfcae91f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-03 03:45:50 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!newsmi-eu.news.garr.it!NewsITBone-GARR!newsserver.cilea.it!news.crs4.it!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Macks - adding unit constants? Date: Mon, 03 Nov 2003 12:45:49 +0100 Organization: CRS4, Center for Adv. Studies, Research and Development in Sardinia Message-ID: <3FA63FED.9050705@crs4.it> References: <3F8514EC.8050702@crs4.it> <3F904FD6.7040301@crs4.it> NNTP-Posting-Host: sparre.crs4.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: pietro.crs4.it 1067855435 23449 156.148.70.170 (3 Nov 2003 10:30:35 GMT) X-Complaints-To: news@nntpserver.crs4.it. NNTP-Posting-Date: 3 Nov 2003 10:30:35 GMT User-Agent: Any Browser, HTML 4.01, XHTML 1.0 X-Accept-Language: fo, da, no, sv, is, fr, de, it, In-Reply-To: Xref: archiver1.google.com comp.lang.ada:1961 Date: 2003-11-03T10:30:35+00:00 List-Id: Preben Randhol wrote: > On 2003-10-17, Jacob Sparre Andersen 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 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. And I have made too many mistakes which could have been caught by proper handling of dimensioned numbers to make me want to take chances. Jacob -- A password should be like a toothbrush. Use it every day; change it regularly; and DON'T share it with friends.