Re: F08 support of floating decimal?



On Dec 27, 8:33 pm, glen herrmannsfeldt <g...@xxxxxxxxxxxxxxxx> wrote:
...
No rule against trinary addition, but I don't know any that
do it.  Then again, base 3 floating point is also rare.
Legal for Fortran, though.

Trinary has some interesting properties. In balanced
trinary (where the digits are zero, one, and minus one)
rounding to nearest is the same operation as truncating.
For calculations involving lots of multiplies I've been
told (and even understood it at one time) that trinary
has some slightly better round-off properties - something
to do with being 3 nearer to the base of natural logarithms
than 2. I don't expect to see any trinary hardware anytime
soon.

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
.



Relevant Pages

  • Re: variable length of integer
    ... consecutive in the native collating sequence. ... I think that the use of achar and iachar means that the ASCII collating ... and we know that digits in ASCII are consecutive. ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: communicating the name of a function to deep within the call tree
    ... it separates parts of two thirds, unless it really isn't two thirds. ... If Fortran had RATIONAL as a data type, ... generic programming. ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: Variable length/precision formats?
    ... does allow the repeat factor, field width, and number of digits ... Read(N, fmt) x, y, z, N, some, more, stuff ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: Pi.
    ... >> ...but is not standard conforming in free-form source, ... provided that the automatic tool ... I've proposed before that spaces be allowed between digits ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: C style compound assignment operators
    ... In C and C++ they are either prefix or postfix, ... Remember that Fortran has a source form in which spaces ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)