From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Trivial question: how to avoid confusing sec, min, hour and day in a program? Date: Mon, 6 Sep 2021 15:43:45 +0200 Organization: Adalog Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 6 Sep 2021 13:43:47 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="f8252d7076c4a6ff7ed555515a3a18bd"; logging-data="7135"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tzvLpUP0l4oD2cpl3MXUV" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cancel-Lock: sha1:j4N9QMdpr3mI4neo5JHJbwxxfV4= In-Reply-To: Content-Language: fr Xref: reader02.eternal-september.org comp.lang.ada:62657 List-Id: Le 06/09/2021 à 15:06, ldries46 a écrit : >> If calculations are involved, they are performed in SI, because >> otherwise you need factors in all formulae. And SI means no mm, but m, >> no km/h, but m/s etc. > Sorry but It should perhaps be so but it is not. Programs made primarily > for Aircraft engineering (f.i. CATIA 5/6) do use mm and your velocity > clock in your car shows km/h and it registers the distance in km (in > England and the USA mph and miles) In aircraft the Speed is often still > measured in Knots (Nautical miles per hour). Maybe French aircraft will > possibly show km/h. It is to hazardous to change this Do not confuse computations with input/output. I agree with Dmitry, all computations should be performed in SI, with a (user selectable) choice of units for input and display. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52 https://www.adalog.fr