From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 21 Nov 91 08:57:38 GMT From: hpcc05!hpbbn!hpugrca!thomas@hplabs.hpl.hp.com (Thomas Buenermann) Subject: Re: Numeric problem with Ada Message-ID: <3690001@hpugrca.GRC.HP.COM> List-Id: K&R C (pre-ANSI, pre-Std. C) specified that all floating point expressions will be propagated to double. And parameter passing is an expression. Thus, floating point values will always be put on the stack as double, and printf expects them this way. (If the formal parameter is a float, the function must read the double from the stack and store it back as a float before entering the body of the function.) - Thomas #include Thomas Buenermann thomas@hpugrca.grc.hp.com HP-UX Kernel & Thomas BUENERMANN / HP 8340/00 Language Support Hewlett-Packard GmbH, Support-Zentrum CRC Germany Berliner Str. 111, D-4030 Ratingen, FRG