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,984 of 5,127    |
|    pehache to All    |
|    Re: FRACTION() seems broken in gfortran     |
|    10 Sep 25 08:25:04    |
      From: pehache.7@gmail.com              Le 10/09/2025 à 00:41, Lawrence D’Oliveiro a écrit :       > On Tue, 9 Sep 2025 15:16:08 -0000 (UTC), Steven G. Kargl wrote:       >       >> Seeing python's modf() does not lends itself to a "most natural       >> interpretation"       >       > 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?              --       "...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