If AllowNaN is true, then NaN, Infinity, and -Infinity are parsed.
See Source File
Tango Dual License: 3-Clause BSD License / Academic Free License v3.0. See LICENSE_TANGO.txt for details.
Copyright (C) 2008 Aaron Craelius & Kris Bell. Some parts copyright (c) 2009-2016 dunnhumby Germany GmbH. All rights reserved.
Initial release: July 2008
Aaron, Kris