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,990 of 5,127    |
|    Lawrence =?iso-8859-13?q?D=FFOlivei to pehache    |
|    Re: FRACTION() seems broken in gfortran     |
|    10 Sep 25 07:03:42    |
      From: ldo@nz.invalid              On Wed, 10 Sep 2025 08:25:04 +0200, pehache wrote:              > Le 10/09/2025 à 00:41, Lawrence D’Oliveiro a écrit :       >>       >> ldo@theon:~> python3 -ic "import math"       >> >>> fraction = lambda x : math.modf(x)[0]       >> >>> fraction(3.75)       >> 0.75       >> >>> fraction(2.5)       >> 0.5       >       > And how do you know how `modf()` works without reading the       > documentation?              The point being, it gives a more natural (i.e. less-surprising) result       than Fortran. That is the point I was trying to make -- the nub of my       gist, if you will. Or even if you won’t. Do not try to distract from that.              --- 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