• set statement

    From CRNG@21:1/5 to All on Wed Aug 15 03:15:18 2018
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From hopflop@21:1/5 to All on Wed Aug 15 16:11:13 2018
    CRNG <noemail@atthisdomain.gov> typed with big furry paws:

    Hello All,

    Hi!

    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]

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From CRNG@21:1/5 to hopflop on Thu Aug 16 10:48:27 2018
    On Wed, 15 Aug 2018 16:11:13 +0000 (UTC), hopflop <---@---.--> wrote
    in <XnsA93FC32F8418Bhopflophere@46.165.242.75>

    CRNG <noemail@atthisdomain.gov> typed with big furry paws:

    Hello All,

    Hi!

    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]

    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.

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)