VMD-L Mailing List
From: Ajasja Ljubetič (ajasja.ljubetic_at_gmail.com)
Date: Tue Jul 12 2011 - 13:01:26 CDT
- Next message: John Stone: "Re: Pucker parameters"
- Previous message: Axel Kohlmeyer: "Re: script"
- In reply to: Axel Kohlmeyer: "Re: script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
>
> nonsense. round() works well:
yes, but doing it like this may be more elegant (although this is a personal
preference and depends on the use-case).
vmd> namespace import ::tcl::mathfunc::*
vmd> puts [round 0.1]
0
vmd> puts [round 1.1]
1
vmd> puts [round -0.1]
0
vmd> puts [round -1.1]
-1
Best regards,
Ajasja
- Next message: John Stone: "Re: Pucker parameters"
- Previous message: Axel Kohlmeyer: "Re: script"
- In reply to: Axel Kohlmeyer: "Re: script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]