Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.fortran    |    Putting John Backus on a giant pedestal    |    5,127 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,969 of 5,127    |
|    Lawrence =?iso-8859-13?q?D=FFOlivei to Gary Scott    |
|    Re: FRACTION() seems broken in gfortran     |
|    17 Aug 25 07:15:43    |
      From: ldo@nz.invalid              On Sat, 16 Aug 2025 20:40:13 -0500, Gary Scott wrote:              > I think most casual, non-math, non-floating point experts would expect       > this:       >       > "The fractional part of a real number is the decimal portion of the       > number, excluding the integer part. It represents the difference between       > the real number and its integer part.              Sure. Except that computers typically do not represent floating-point       numbers in decimal, but in binary. This is the significance of the “model       representation” phrase in the language spec.              The way you describe is obviously the most natural interpretation, these       days. And most other languages do it that way. But not Fortran.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca