From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <2576e4.40c323e4.IOOu.mx@tumtum.plumbweb.net> References: <2576e4.40c323e4.IOOu.mx@tumtum.plumbweb.net> Date: Fri, 12 Mar 2010 13:37:33 -0800 Message-ID: Subject: Re: [9fans] printing floating point numbers From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Message-UUID: e74b1e8a-ead5-11e9-9d60-3106f5b1d025 > The current implementation just prints the first 18 digits. 18 digits are sufficient to reconstruct exactly the same bit representation when you run the text back through strtod. All those extra digits may be precise but they're not necessary and probably not accurate. Russ