How can I print without trailing zeros? For example if there was a function nice:
real*8 ff
ff = -3.5d0
print*, "there are ", nice(ff), " horses"
or a formatter t
print'(a,t,a)', "there are ", ff, " horses"
should give:
there are -3.5 horses