Re: amber-developers: ptraj precision

From: David A. Case <case.scripps.edu>
Date: Mon, 5 Feb 2007 18:05:08 -0800

On Mon, Feb 05, 2007, Thomas Cheatham III wrote:
>
> Basic code is sscanf(buffer, "%f", &value). Note that this could all be
> mute if I get off my butt and fix the character overflow problem (where
> numbers merge into others in trajectories and choke ptraj) with the atof()
> fix, as atof() may not do this magic conversion...

atof() indeed returns a double. Just be sure to include <stdlib.h> to get the
proper definition, otherwise the code will think that atof() returns a
(default) integer.

...dac
Received on Wed Feb 07 2007 - 06:07:27 PST
Custom Search