Fixed assertion in Hdf5Recorder

Avoided rounding error