Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.lang.c++ / MAX * MAX == MAX

SubjectAuthor
o MAX * MAX == MAXBonita Montero

1
MAX * MAX == MAX

<v05un3$10u6j$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3657&group=comp.lang.c%2B%2B#3657

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: MAX * MAX == MAX
Date: Mon, 22 Apr 2024 17:11:31 +0200
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <v05un3$10u6j$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 22 Apr 2024 17:11:31 +0200 (CEST)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="41b6485d5193052e41e8eaeab9084478";
logging-data="1079507"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+G6+9HRABwxdeIFrRJhm7vGRhH2tAtQRY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:wdi3i23v/9I7DVhrJs5GfhWEjT8=
Content-Language: de-DE
 by: Bonita Montero - Mon, 22 Apr 2024 15:11 UTC

Not really surprising, but funny.

#include <iostream>
#include <cfenv>
#include <limits>

using namespace std;

int main()
{ static pair<char const *, int> const rounds[] =
{
{ "to nearest", FE_TONEAREST },
{ "downwards", FE_DOWNWARD },
{ "upwards", FE_UPWARD },
{ "towards zero", FE_TOWARDZERO }
};
double volatile max = numeric_limits<double>::max();
for( auto round : rounds )
{
fesetround( round.second );
cout << round.first << ": " << max * max << endl;
}

}


devel / comp.lang.c++ / MAX * MAX == MAX

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor