VMD-L Mailing List
From: Ben Roberts (ben_at_roberts.geek.nz)
Date: Thu Dec 08 2011 - 21:17:45 CST
- Next message: Axel Kohlmeyer: "Re: TCL strangeness"
- Previous message: Gianluca Interlandi: "RE: TCL strangeness"
- Maybe in reply to: Ben Roberts: "Re: TCL strangeness"
- Next in thread: Axel Kohlmeyer: "Re: TCL strangeness"
- Reply: Axel Kohlmeyer: "Re: TCL strangeness"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi Gianluca,
On 8/12/2011, at 9:26 PM, Gianluca Interlandi <gianluca_at_u.washington.edu> wrote:
> Hi Ben,
>
> Thanks a lot for your detailed descrition. I guess this applies also when programming in C/C++?
Yes, that's correct. In fact, some compilers at some verbosity levels will warn you if you try to do a floating-point equality test. They'll usually proceed anyway, though. We know that most compilers (and interpreters, for that matter) will quite happily give us plenty of rope with which to hang ourselves.
> Do you know off hand how to force a particular printing format in TCL in order to limit the number of decimals to for example 8? (Something similar to printf "%0.8f" in awk).
I'm afraid I can't remember much of TCL programming – it's probably close on five years since I last had to do any. You can probably find the answer online as quickly or easily as I could.
Good luck,
Ben
- application/pkcs7-signature attachment: smime.p7s
- Next message: Axel Kohlmeyer: "Re: TCL strangeness"
- Previous message: Gianluca Interlandi: "RE: TCL strangeness"
- Maybe in reply to: Ben Roberts: "Re: TCL strangeness"
- Next in thread: Axel Kohlmeyer: "Re: TCL strangeness"
- Reply: Axel Kohlmeyer: "Re: TCL strangeness"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]