delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/27/10:14:34

Date: Mon, 27 Jun 1994 15:16:27 +0200
From: Broeker AT axp03 DOT physik DOT rwth-aachen DOT de
To: kunst AT prl DOT philips DOT nl
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Long floats

   Pieter Kunst wrote: 

   [...]
   gcc supports the 'long double' type. You can do calculations with it.
   However, printing 'long double' values using printf is not supported yet.

Well, I remember seeing a contributed addition to libc's printf()-sources
on this list a while ago, that added long double printing capabilities.
I installed them at home and they worked quite well for me. Maybe the 
original contributor could upload them to omnigate or re-post them here???

   According to K&R (p.245) the conversion character is an extra 'L' in
   front of the 'e', 'f' or 'g' conversion character, e.g. printf ("%Lg", ld);
   Maybe 2.6.x will include this.

   Pieter Kunst (kunst AT prl DOT philips DOT nl)

Hans-Bernhard Broeker (softbrek AT pool DOT informatik DOT rwth-aachen DOT de)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019