It's easy to sleep floating around - it's very comfortable. But you have to be careful that you don't float into somebody or something!
Some astronauts sleep in sort of beds - compartments that you can open up and crawl into and then close up, almost like a little bedroom.
Different astronauts sleep in different ways.