VMD-L Mailing List
From: Ajasja Ljubetič (ajasja.ljubetic_at_gmail.com)
Date: Tue Jul 12 2011 - 12:08:12 CDT
- Next message: Axel Kohlmeyer: "Re: script"
- Previous message: KIRTANA S: "script"
- In reply to: KIRTANA S: "script"
- Next in thread: Axel Kohlmeyer: "Re: script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
This is more of a tcl question then a VMD one, but here it goes:
to use the mathfunctions you have to specify the whole namespace.
so you have to write
*::tcl::mathfunc::round* *arg*
More info here: http://tmml.sourceforge.net/doc/tcl/mathfunc.html
If you use a lot of math functions you can also import the namespace and
just use round.
so after running
*namespace import **::tcl::mathfunc::**
*
*
just using round should work.
Regards,
Ajasja
On Tue, Jul 12, 2011 at 18:12, KIRTANA S <skirtana4_at_gmail.com> wrote:
> How can I round off a number to nearest whole number using tcl .I
> tried using round (), whihc is not recognized .
> expr{} works . Can you tell me if I need to import any library to use
> the math in tcl.
>
> thank you
>
- Next message: Axel Kohlmeyer: "Re: script"
- Previous message: KIRTANA S: "script"
- In reply to: KIRTANA S: "script"
- Next in thread: Axel Kohlmeyer: "Re: script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]