import std.conv: to;
void main() {
auto r = to!real(0x1.0076fc5cc7933866p+40L);
auto d = to!double(0x1.0076fc5cc7933866p+40L);
auto f = to!float(0x1.0076fc5cc7933866p+40L);
}
Regarding unit tests, I should really use them :(
Yep, and DbC too, and compile your D code with -w.
The same question goes to you. Why do you call this bug?
It is approximate, but approximation is not an undefined behavior.
It is same as 2 + 1 = 4.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
On 26/11/2010 22:58, Tom wrote:
El 26/11/2010 08:43, Bruno Medeiros escribió:
On 24/11/2010 21:44, Tom wrote:
El 17/11/2010 15:52, Bruno Medeiros escribió:
I'm announcing the release of DDT (D Development Tools) version 0.4.0:
http://code.google.com/a/eclipselabs.org/p/ddt/
(There was
On 27/11/2010 06:26, Don wrote:
I haven't seen any examples of values which are calculated differently
between the processors. I only found one vague reference in a paper from
CERN.
And because of that comment, I've once again checked
http://hasthelargehadroncolliderdestroyedtheworldyet.com/
so:
I have an unrelated question, this is not a criticism but an honest one.
Why don't you write these 3 lines like:
auto r = to!real (0x1.0076fc5cc7933866p+40L);
auto d = to!double(0x1.0076fc5cc7933866p+40L);
auto f = to!float (0x1.0076fc5cc7933866p+40L);
I have a certain
On Monday, November 29, 2010 12:36:00 bearophile wrote:
so:
I have an unrelated question, this is not a criticism but an honest one.
Why don't you write these 3 lines like:
auto r = to!real (0x1.0076fc5cc7933866p+40L);
auto d = to!double(0x1.0076fc5cc7933866p+40L);
Walter Bright Wrote:
Really? I think, the answer is neither correct nor wrong. It's approximate.
The rules for rounding the mathematical value to the representation are
precise,
and so there is such a thing as the correctly rounded result and the wrong
result.
Well, maybe, but the
Andrei Alexandrescu wrote:
On 11/29/10 6:01 PM, Ali Çehreli wrote:
Here is the announcement of the talk that I just sent out:
[snip]
Thanks, Ali. Let's see who's coming!
I am dragging some C++ (and C) people from where I work.
I am looking forward to meeting other D people too. Perhaps we
On Monday 29 November 2010 21:30:31 s...@so.do wrote:
LOL. I couldn't figure out what was different about those lines (the
extra space
apparently; the fact that the text isn't monospaced makes it harder to
see
though). But no one's over going to get people to agree on spacing any
more
but I wouldn't have thought that it would be worth calling someone on
it. It
just seems nitpicky, honestly.
- Jonathan M Davis
I am sorry if it seems that way, wasn't my intention.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
10 matches
Mail list logo