Re: Conversion from int to char
- From: Ron Ford <ron@xxxxxxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 03:40:36 -0600
On Fri, 29 Aug 2008 07:56:46 -0700 (PDT), michaelmetcalf@xxxxxxxxxxxxxx
posted:
On Aug 29, 4:28 pm, fm2766 <fm2...@xxxxxxxx> wrote:
Hello, I have to convert integers in characters; for example: from
number i=123456 to string c="123456".
I could write in a file the variable "i", and later read it as a
variable "c", but this method seems to me very inefficient.
Some suggestions?
Well, that's almost what you do, however, not to an external file but
to an 'internal' one as defined by your c, as in:
write(c, '(i6)') i
Is c a default character variable here?
--
Wealth - any income that is at least one hundred dollars more a year than
the income of one's wife's sister's husband. 6
H. L. Mencken
.
- Follow-Ups:
- Re: Conversion from int to char
- From: Jim
- Re: Conversion from int to char
- Prev by Date: Re: Conversion from int to char
- Next by Date: Re: Conversion from int to char
- Previous by thread: Re: Conversion from int to char
- Next by thread: Re: Conversion from int to char
- Index(es):
Relevant Pages
|