> > How do I add two IEEE 754 numbers?
> That is platform and language dependent. In most languages I use, a '+'
> will do, but you must remember to use the right encoding, be it UTF-8 or,
> say ISO 8859-15. In others, something like HADDPD (case insensitive, most
> likely) is necessary.
How do you add two numbers written in "scientific" notation?
m_a * 10^e_a + m_b * 10^e_b
If e_a and e_b are equal then it is simply: (m_a + m_b) * 10^e_a.
And if they are not? Well, make them equal, of course.
>> Thanks for that but I should have been more specific. I meant how do I
>> them manually - what are the steps?
> Welcome to comp.arch ;)
> How do you add two numbers written in "scientific" notation?
> m_a * 10^e_a + m_b * 10^e_b
> If e_a and e_b are equal then it is simply: (m_a + m_b) * 10^e_a.
> And if they are not? Well, make them equal, of course.
> Your turn.
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
I've heard that the major differences between the G-format of DEC
VAX and double of IEEE 754 are
1. exponent biases and
2. over/underflow thresholds.
A paper says that IEEE 754 lets numbers grow twice as big as VAX
did without overflow and exponent biases differed by 2.
I suspect that with flushing to zero instead of gradual underflow
DEC VAX's G-format adjusts the over/underflow balance via its
exponent bias to compensate the gap caused by flushing to zero.
Despite googling, I failed to find the span of VAX's G-format.
Could you anyone tell me what the above wording means concretely?
Thanks in advnace.
Dept. of Physics, Univ. of Seoul
4. Shrink Files