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,970 of 5,127    |
|    Gary Scott to All    |
|    Re: FRACTION() seems broken in gfortran     |
|    17 Aug 25 09:11:52    |
      From: garylscott@sbcglobal.net              On 8/17/2025 2:15 AM, Lawrence D’Oliveiro wrote:       > 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.              Yes, which is abhorrent.              --- 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