Use parseFloat instead of parseInt

When creating periods or markers, use parseFloat instead of parseInt so
a marker can start e.g. from 1.42 seconds (instead of 1).