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,964 of 5,127   
   Thomas Koenig to Louis Krupp   
   Re: FRACTION() seems broken in gfortran    
   15 Aug 25 16:16:42   
   
   From: tkoenig@netcologne.de   
      
   Louis Krupp  schrieb:   
   > On 8/13/2025 9:21 PM, Woozy Song wrote:   
   >> A program was going wrong, and found   
   >> FRACTION(3.75)=0.9375 and FRACTION(2.5)=0.9375   
   >   
   > I tried it with gfortran version 15, just for fun, and I got the same   
   > result.   
      
   For   
      
     print *,FRACTION(3.75)   
     print *,FRACTION(2.5)   
   end program   
      
   I get the same result for gfortran 12, 13, 14, 15 and current trunk:   
      
     0.937500000   
     0.625000000   
      
   So, please provide a failing test case that actually compiles.   
      
   --   
   This USENET posting was made without artificial intelligence,   
   artificial impertinence, artificial arrogance, artificial stupidity,   
   artificial flavorings or artificial colorants.   
      
   --- 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