Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Robustly parse strings that represent NaN and Infinity #569

Open
cwardgar opened this issue Jun 22, 2016 · 1 comment
Open

Robustly parse strings that represent NaN and Infinity #569

cwardgar opened this issue Jun 22, 2016 · 1 comment

Comments

@cwardgar
Copy link
Contributor

cwardgar commented Jun 22, 2016

From the mailing list:

In NetCDF-Java and THREDDS, we currently use Double.valueOf (or similar) to parse strings as floats. As the Javadoc states, only the literal string "NaN" is interpreted as Not-a-Number and only the literal string "Infinity" is interpreted as infinity. We ought to be more lenient. At the least, do case-insensitive matching and accept the "inf" string.

@DennisHeimbigner
Copy link
Contributor

Agreed, although finding all the relevant places may be a bit of a chore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants