Magnetic float