It's pretty straight forward. You replace or user the old float depending if the replacement comes with a new one. Some of the replacements have the float as an integrated part of the valve, others not.

My guess is you will know immediately when you go to your local plumbing supply and see what they carry. You can turn off the water, disassemble the old one and take it in with you.