Discussion:
set statement
(too old to reply)
CRNG
2018-08-15 08:15:18 UTC
Permalink
Hello All,

I'm looking at a script written in 4nt v7.01 in which there is a
statement:

set bytes_sec = %@eval[%fsize / %secs=0.0]

which is obviously calculating a byte rate by dividing a file size by
seconds. My question is: what does the "0.0" in %secs=0.0 do? I'm
guessing that it replaces the value of %secs with 0.0 _after_ secs is
used in the calculation.

Is that correct?
--
Web based forums are like subscribing to 10 different newspapers
and having to visit 10 different news stands to pickup each one.
Email list-server groups and USENET are like having all of those
newspapers delivered to your door every morning.
hopflop
2018-08-15 16:11:13 UTC
Permalink
Post by CRNG
Hello All,
Hi!
Post by CRNG
I'm looking at a script written in 4nt v7.01 in which there is a
It sets minimum and maximum decimal precision.

0.0 cuts of all decimals (and rounds up) to full seconds.
2.5 would show 2 to 5 decimals.

See help file under @EVAL, scroll to the end.
--
hopflop
CRNG
2018-08-16 15:48:27 UTC
Permalink
Post by hopflop
Post by CRNG
Hello All,
Hi!
Post by CRNG
I'm looking at a script written in 4nt v7.01 in which there is a
It sets minimum and maximum decimal precision.
0.0 cuts of all decimals (and rounds up) to full seconds.
2.5 would show 2 to 5 decimals.
Thanks very much! I was looking at the "SET" help instead of at the
"EVAL" help. Duh...
--
Web based forums are like subscribing to 10 different newspapers
and having to visit 10 different news stands to pickup each one.
Email list-server groups and USENET are like having all of those
newspapers delivered to your door every morning.
Loading...