Package org.openscience.cdk.math
Class FortranFormat
java.lang.Object
org.openscience.cdk.math.FortranFormat
Converts a String representation of a Fortran double to a double.
A modified version of the atof
method provided in the Core Java
books by Cay S. Horstmann & Gary Cornell. The main difference
here is that we scan for Fortran double precision characters
('D' and 'd') which often cause the C versions of atof to
barf.
- Author:
- Dan Gezelter
- Source code:
- main
- Belongs to CDK module:
- standard
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FortranFormat
public FortranFormat()
-
-
Method Details
-
atof
Converts a string of digits to an double.- Parameters:
s
- a string denoting a double
-