home bbs files messages ]

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,982 of 5,127   
   Lawrence =?iso-8859-13?q?D=FFOlivei to Steven G. Kargl   
   Re: FRACTION() seems broken in gfortran    
   09 Sep 25 22:41:33   
   
   From: ldo@nz.invalid   
      
   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   
      
   --- 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