From owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org  Sun Aug 30 18:54:57 2015
Return-Path: <owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org>
X-Original-To: sc22wg14-domo2
Delivered-To: sc22wg14-domo2@www.open-std.org
Received: by www.open-std.org (Postfix, from userid 521)
	id 57F8E3582F1; Sun, 30 Aug 2015 18:54:57 +0200 (CEST)
Delivered-To: sc22wg14@open-std.org
Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169])
	(using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested)
	by www.open-std.org (Postfix) with ESMTP id 929213572EE
	for <sc22wg14@open-std.org>; Sun, 30 Aug 2015 18:54:56 +0200 (CEST)
Received: by obcid8 with SMTP id id8so27198802obc.0
        for <sc22wg14@open-std.org>; Sun, 30 Aug 2015 09:54:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        bh=PJYWtuHKdUYg81mhy9Avbr3H92aHv6mgN+aY3ISVKUQ=;
        b=FTckAHgFd9A3mLSE7QqCs4rDASaSoKHhhzCrA+x4U9hYwv/cYdPpMhMu13PKocb6q1
         91zWkBCEO0HBdtpP3OiKILFuscmyCI8emaWCkoe4Ak0HMKqjxH8ZKvI30zciWv6EzzZt
         pT8aC14mx7fGrHkk0n/L1qNLLNu67wRIbVAZNktPhqmB8upezDNr35UbPty05ZoHg9GA
         7RcPXICJeGfthsAnlq+cUjaQVLpsquEpABYG9LhKkUc0/xGOjrnKQRirO0ux7eWiqFRU
         3hY4behhDMQunEQ/80rI2p0igKsaiA91/HJKqrGSlYHm6rmqUFKOZ3eCkBru6Wcx7SiN
         1TDg==
MIME-Version: 1.0
X-Received: by 10.182.158.164 with SMTP id wv4mr11916999obb.78.1440953694461;
 Sun, 30 Aug 2015 09:54:54 -0700 (PDT)
Received: by 10.202.172.5 with HTTP; Sun, 30 Aug 2015 09:54:54 -0700 (PDT)
Received: by 10.202.172.5 with HTTP; Sun, 30 Aug 2015 09:54:54 -0700 (PDT)
In-Reply-To: <20150830164516.F01353572EE@www.open-std.org>
References: <20150830164516.F01353572EE@www.open-std.org>
Date: Sun, 30 Aug 2015 12:54:54 -0400
Message-ID: <CACqWKsNLwyxQ6F54+c2o+8-CUGWi7dMTv6swr44bbKoUYYc-kw@mail.gmail.com>
Subject: Re: (SC22WG14.13763) LDBL_MAX
From: Robert Seacord <rcseacord@gmail.com>
To: "Fred J. Tydeman" <tydeman@tybor.com>
Cc: "sc22wg14@open-std. org" <sc22wg14@open-std.org>
Content-Type: multipart/alternative; boundary=089e0149c47618c656051e8a2dd6
Sender: owner-sc22wg14@open-std.org
Precedence: bulk

--089e0149c47618c656051e8a2dd6
Content-Type: text/plain; charset=UTF-8

Maximum representable because it would be surprising behavior for any value
to test greater than LDBL_MAX or for a LDBL_MAX minus a positive value to
produce a negative result.
On Aug 30, 2015 12:45 PM, "Fred J. Tydeman" <tydeman@tybor.com> wrote:

> For most floating-point systems, the maximum representable finite
> floating-point
> number and the maximum normalized finite floating-point number are the
> same.
> But, there is at least one implementation where they are not the same.
> For such
> systems, is it better for LDBL_MAX to be the:
>   maximum representable finite floating-point number
>   maximum normalized finite floating-point number
> and why?
>
>
> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman@tybor.com      Testing, numerics, programming
> +1 (775) 287-5904      Vice-chair of PL22.11 (ANSI "C")
> Sample C99+FPCE tests: http://www.tybor.com
> Savers sleep well, investors eat well, spenders work forever.
>

--089e0149c47618c656051e8a2dd6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">Maximum representable because it would be surprising behavio=
r for any value to test greater than LDBL_MAX or for a LDBL_MAX minus a pos=
itive value to produce a negative result. </p>
<div class=3D"gmail_quote">On Aug 30, 2015 12:45 PM, &quot;Fred J. Tydeman&=
quot; &lt;<a href=3D"mailto:tydeman@tybor.com">tydeman@tybor.com</a>&gt; wr=
ote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For most floati=
ng-point systems, the maximum representable finite floating-point<br>
number and the maximum normalized finite floating-point number are the same=
.<br>
But, there is at least one implementation where they are not the same.=C2=
=A0 For such<br>
systems, is it better for LDBL_MAX to be the:<br>
=C2=A0 maximum representable finite floating-point number<br>
=C2=A0 maximum normalized finite floating-point number<br>
and why?<br>
<br>
<br>
---<br>
Fred J. Tydeman=C2=A0 =C2=A0 =C2=A0 =C2=A0 Tydeman Consulting<br>
<a href=3D"mailto:tydeman@tybor.com">tydeman@tybor.com</a>=C2=A0 =C2=A0 =C2=
=A0 Testing, numerics, programming<br>
<a href=3D"tel:%2B1%20%28775%29%20287-5904" value=3D"+17752875904">+1 (775)=
 287-5904</a>=C2=A0 =C2=A0 =C2=A0 Vice-chair of PL22.11 (ANSI &quot;C&quot;=
)<br>
Sample C99+FPCE tests: <a href=3D"http://www.tybor.com" rel=3D"noreferrer" =
target=3D"_blank">http://www.tybor.com</a><br>
Savers sleep well, investors eat well, spenders work forever.<br>
</blockquote></div>

--089e0149c47618c656051e8a2dd6--
