| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | formatting output... Rexx |
On Tue 21 Nov about 08:32, Erik Huelsmann retorted in a
message to Richard Wallen about formatting output... Rexx
Hello Erik!
[...]
RW> start = time('e')
RW> rc = FtpGet(filename, filename,"binary") /* Transfer
the file */
RW> elapsed = time('e')
RW> calc_cps = sizehere/elapsed-start
EH> Shouldn't this be:
EH> calc_cps = sizehere/(elapsed-start)
EH> instead of what you wrote:
EH> calc_cps = (sizehere/elapsed)-start
EH> Multiplycation/division has precedence over subtraction/addition
EH> (division sounds absolutely wrong, but what is the right word?)
Ahem... I guess I got so caught up in the presentation I let the basic
concepts whoop me ;] ... Corrected... and correct for the term used. I
initialized a start time for 'time()', performed a function, saved the
elapsed time again... performed the calcs... then I format the output...
slap!
ending with ...
say ' Received 'filename ', size - 'sizehere 'bytes received at '
[wrapped]format(calc_cps,5,1) 'cps')
then the output with upto 5 integers and 1 dec is displayed properly... thanks!
A little more each day...
Richard Wallen
rgwallen{at}datasync.com
---
* Origin: > it On-Line After Late Night *BBS* (1:3625/454)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809 @PATH: 3625/454 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.