Modified hack to manage exponential double/float values.