if it is a tiny spring
it fits between the float needle and the float arm lever holding the needle valve in place and assisting the sealing of the valve into the seat.
so if the spring has come out, you just as likely have misplaced the float needle valve. If so your carb is now JUNK