Re: Speed of floating point double vs single precision

From: Beamguy (nobody_at_home.com)
Date: 11/08/04


Date: Mon, 8 Nov 2004 17:28:02 -0500

I answered my own question. It is slightly faster to have everything in double precision,
since the floating processor and all the library functions are double precision. Single
precision numbers must be converted to double before being used.

"Beamguy" <nobody@home.com> wrote in message news:...
>I am writing a numerical program and am pondering which precision to use for floating
> point numbers. A bunch of years back there was a class of computers where it became
> faster to do floating point arithmetic in double precision, since the hardware floating
> point was double precision. I am not sure about PC's. Are hardware floating point
> units on PC's double or single precision these days, and based on this which is faster
> to use?
>
> Thanks.
>



Relevant Pages

  • Re: Precision
    ... Whether one does the subsequent calculations in internal ie integer format ... I have always used external format with Precision 4 since my ... floating point calcs which are done in binary have around 3% error albeit at ... positions it is IMPOSIBLE to have a result of 4 decimals with the 2 ...
    (comp.databases.pick)
  • Re: Linear Algebra Challenge
    ... Since I'm using floating point, so I'll never be able to calculate one ... floating point math set to 99 digits. ... As close as I'm willing to wait if I use arbitrary precision. ... This mode is fast; when you select arbitry ...
    (comp.sys.hp48)
  • Re: Floating point environment
    ... In all functions like fetestexcept, for instance, it is assumed that there is only one floating point environment ... one for double precision ... the 64 bit format and another for the 80 bit format. ... All versions of SSE use a status/control word separate from the main FPU, however, so they can indeed be considered a separate environment. ...
    (comp.std.c)
  • Re: Precision
    ... It's the same if we use Precision, floating point, or ... positions it is IMPOSIBLE to have a result of 4 decimals with the 2 ... May be something wrong in the floating ... remember what the associated actuarial calculations were. ...
    (comp.databases.pick)
  • Re: Precision
    ... The something wrong is that floating point binary was used. ... It's the same if we use Precision, floating point, or ... positions it is IMPOSIBLE to have a result of 4 decimals with the 2 ... We do not use Galleons or Triganic Pus so all accounting uses decimal ...
    (comp.databases.pick)

Quantcast