Re: Conversion from int to char



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
.



Relevant Pages

  • Re: We Have Chosen?
    ... so, like those 47 million people without health insurance, primarily ... Wealth Inequality Destroys US Ideals ... the U.S. economy saw its second steepest decline in 27 ... income, while the top ten percent took half of the total income, the ...
    (soc.retirement)
  • Re: OT How recessions become Great Depressions
    ... It's rare the wealth of a family can last for three ... The family income generators are ... The family maintains this savings plan, ... their monthly income into an equity investment over a 45 year period. ...
    (alt.sports.basketball.nba.la-lakers)
  • Re: We Needed A Big Gas Tax Like We Need a Scathing Case of Herpes
    ... >> earning 32% of all income. ... the Bush tax cut helped those who paid taxes. ... > Dems and Repubs. ... make it difficult for anyone else to reach their level of wealth. ...
    (rec.autos.makers.ford.mustang)
  • Re: BBC-Womens health fuelling poverty
    ... > much time doing the unpaid work at home. ... and sharing that income with other family members. ... sharing his wealth with the women in his life. ... Again, ambition is a form of strength, but anything taken to ...
    (soc.men)
  • Re: Lucas: Shame on the redistributionists
    ... Matt was talking about wealth, ... Those who have it just want it to yield as much unearned income ... of economic rents. ... that bore on land rents; and even today, ...
    (sci.econ)