Re: Euphoria works???

new topic     » goto parent     » topic index » view thread      » older message » newer message

Welcome Wayne!

No, you don't have to compile a Euphoria program, because Euphoria is an
*interpreted* language.  So yes, you can just type in code in a text editor,
SAVE IT WITH AN .EX extent, an it's ready to run.

And yes, the commands can be hard to figure out (at least for me, anyway);
but there are "overview" documentation in both "doc" and "html" folders; the
html is easier to use, though they contain the same information.

printf lets you print things in a formatted way, like where the decimal
point gets placed, how many decimal places are use when numbers are printed,
etc.  It's *not* limited to printing numbers, though.

for example:

 rate = 7.875
printf(myfile, "The interest rate is: %8.2f\n", rate)

yields:
The interest rate is:     7.88

because the "%" which is eventually followed by the "f" tells it to print
floating point decimals, the "8" tells it to allow 8 places to left of
decimal, the 2 tells it to allow 2 places after decimal, and the "\n" tells
it to make a new line after it prints what it prints.

Dan Moyer


----- Original Message -----
From: "Wayne Thompson" <Mrwayne51736 at CS.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, October 27, 2000 6:18 AM
Subject: Euphoria works???


>    You mean I can just open up any text editor, like maybe Notepad, type
it
> some code, and it's ready to run?  Don't you have to compile it?
>    The Euphoria that I downloaded came with very vague instructions.  Is
> there a list of commands and what they do?  Like what's the difference in
> print and printf?
>                                                             Wayne

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu