[patch, wwwdocs, committed] Document -Winteger-division for Fortran

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Jul 1 21:42:00 GMT 2015


On Wed, Jul 01, 2015 at 11:39:09PM +0200, Gerald Pfeifer wrote:
> On Wed, 1 Jul 2015, Thomas Koenig wrote:
> > I just committed the following patch to the WWW docs.
> 
> Thanks.  In the description, are the integers constants truncated
> or (the result of) the division?
> 

The result is truncated.

real x
x = 4/5 
end

is truncated to 'x = 0'.  The remainder of 4 is tossed.

-- 
Steve



More information about the Fortran mailing list