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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cca!mirror!ishmael!ada-uts!stt From: stt@ada-uts Newsgroups: comp.lang.ada Subject: Re: Need help on float_io format Message-ID: <57900050@ada-uts> Date: Sun, 8-Nov-87 12:14:00 EST Article-I.D.: ada-uts.57900050 Posted: Sun Nov 8 12:14:00 1987 Date-Received: Fri, 13-Nov-87 21:20:14 EST References: <7785@steinmetz.steinmetz.UUCP> Nf-ID: #R:steinmetz.steinmetz.UUCP:-778500:ada-uts:57900050:000:692 Nf-From: ada-uts!stt Nov 8 12:14:00 1987 List-Id: This is a feature, not a bug. Ada believes in "scientific notation" (not "Fortran notation"). As it says in LRM 14.3.8:14, If EXP has a value greater than zero, then the integer part to be output has a *single* digit, which is nonzero except for the value 0.0 of ITEM. If you feel adventurous, you can PUT the number into a string, and then fiddle around with the string (probably easiest if you multiply by 10 first, so all you have to do is prepend "0." and eliminate the existing decimal point). If you feel very adventurous, you can write your own Float-to-string conversion routine, and then output it using PUT of a string. Tucker Taft c/o Intermetrics Cambridge, MA 02138