Code changed to get tests ok with float wavelength

Test with: ant clean jars test