>21:12 Examples:
>21:12    $trunc(2 3.141592654)                 returns "3.14"
>21:12    $trunc(5 3.54)                        returns "3.54000"
>
>Hmm, but $trunc(0 3.141592654) returns nothing.  I have new_math on, but
>doubt this has much to do with it.  I would generally consider this to
>be a bug in implementation.

$trunc(0 ..) is not permitted; if you need to truncate to an integer,
just chop it off at the decminal point.

>We've also determined that it rounds.  Rounding is probably not what you
>want in trunc either.  I consider this a bug in the naming of the
>function, round should round, trunc should trunc.

I use printf to do the truncation, and it's too complicated to do it 
myself, so tough. ;-)

You are of course welcome to submit patches if you want to see this 
done another way.  Please be aware that some may depend on current behavior,
so if anyone complains about the change, i'll send them to you. ;-)

And no, a new /set will not be permitted.
Jeremy
_______________________________________________
List mailing list
[EMAIL PROTECTED]
http://epicsol.org/mailman/listinfo/list

Reply via email to