Re: calculation accuracy



Richard Maine <nospam@xxxxxxxxxxxxx> wrote:

Yes. It seems sort of pointless to declare pi_d as double precision and
also properly specify the literal as double precision, but then give
only 8 digits of it. It isn't as though the compiler is going to be able
to guess "oh, that's close to pi, and the variable name has pi in it, so
maybe I should use a more accurate value of pi instead of the one
specified).

Can we have a standardized way to specify pi? Please?

There would be a need to differentiate different kinds, of course.
.



Relevant Pages

  • Re: Oracle-Number werden tlw. als Zahl/Double erstellt
    ... you can also specify a precision (total number of digits) and scale. ... der wohl in unterschiedlichen Versionen unterschiedliche DDL-Anweisungen für ein Number-Feld ohne jegliche Dimensionierung erstellt hat. ...
    (microsoft.public.de.access.clientserver)
  • RFC: XCall calling convention...
    ... compiler, although what I have implemented thus far differs from this spec ... Arguments are passed on the stack in right-to-left order, ... This will attempt to specify Signature strings as applied to data types. ... reference to type ...
    (alt.lang.asm)
  • Re: Monetary calculations in CL
    ... things like yield rates that specify a number of places of precision and ... round the 13th (by implication do not employ precision to more than the ... calculations can easily consume 20 or more significant digits. ... of places of significance and the rounding policy are supplied. ...
    (comp.lang.lisp)
  • Re: Some newbye questions
    ... Why have I to specify twice the type of the output of a function? ... By far the easiest way to get such an explicit interface is ... on the particular compiler. ... Unless you have huge arrays of logicals or some such thing, ...
    (comp.lang.fortran)
  • Re: Sweeney presentation "The Next Mainstream Language"
    ... Specify int to be more specific than real. ... possibly helped by programmer annotations or checks. ... test just before the access to make the compiler see that the index is ... he included compiler-checked manual region allocation in Cyclone. ...
    (comp.lang.functional)