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,985 of 5,127    |
|    Lawrence =?iso-8859-13?q?D=FFOlivei to pehache    |
|    Re: FRACTION() seems broken in gfortran     |
|    10 Sep 25 07:02:03    |
      From: ldo@nz.invalid              On Wed, 10 Sep 2025 08:21:51 +0200, pehache wrote:              > We are still waiting what are these natural ways to get a fractional       > part of these other languages.              Let me try again:               ldo@theon:~> python3 -ic "import math"        >>> fraction = lambda x : math.modf(x)[0]        >>> fraction(3.75)        0.75        >>> fraction(2.5)        0.5              > This is precisely the advice you have received, instead of complaining       > that `FRACTION()` doesn't do what you thought it was doing.              Here’s what I said, again:              “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