Re: printing logical variables as "true" and "false"



<beliavsky@xxxxxxx> wrote:

> I would like to print logical variables as "true" and "false" rather
> than just "T" and "F", which is what Fortran WRITE statements do. I can
> define functions that convert .true. and .false. to the strings "true"
> and "false", but is there some edit descriptor I have overlooked?

Nope. I don't know of a language-provided shortcut for this. Your
function is a pretty simple one to write, but I don't know a way to
avoid it.

--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.


Quantcast