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,977 of 5,127    |
|    pehache to All    |
|    Re: FRACTION() seems broken in gfortran     |
|    08 Sep 25 15:25:28    |
      From: pehache.7@gmail.com              Le 17/08/2025 à 09:15, Lawrence D’Oliveiro a écrit :       > 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.                     Can you elaborate on what these "most other languages" are ? I cannot       find any intrinsic function that corresponds to the "most natural       interpretation" in most of the popular languages around (C, C++, Pthon,       Java, Rust, Matlab...)              --       "...sois ouvert aux idées des autres pour peu qu'elles aillent dans le       même sens que les tiennes.", ST sur fr.bio.medecine       ST passe le mur du çon : |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca