Allow `sleep` to work with float values (fixes #261)