Mercurial > hg > octave-nkf
view liboctave/cruft/misc/r1mach.f @ 20174:d20dd211cc89
Enable float truncation by default for octave builds.
* NEWS: Announce change.
* configure.ac: Change configure option to --disable-float-truncate, and enable
float truncation by default.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 19 Mar 2015 07:00:11 -0700 |
parents | c08776badd3d |
children |
line wrap: on
line source
real function r1mach (i) integer i logical init real rmach(5) real slamch external slamch save init, rmach data init /.false./ if (.not. init) then rmach(1) = slamch ('u') rmach(2) = slamch ('o') rmach(3) = slamch ('e') rmach(4) = slamch ('p') rmach(5) = log10 (slamch ('b')) init = .true. endif if (i .lt. 1 .or. i .gt. 5) goto 999 r1mach = rmach(i) return 999 write (*, 1999) i 1999 format (' r1mach - i out of bounds', i10) call xstopx (' ') r1mach = 0 end