I'll tell you my experience.
In order for the solder to spread around the brass, the brass needs to be hot. If you just heat the area where the crack is, you will end up leaving a blob of solder, because it cools down very quickly and doesn't spread.
You can heat the whole float but chances are it will crumble and fall into pieces, as it is formed by soldering pieces together.
what I did after I left the blob was to heat it again an quickly wipe off the excess with a cloth. That will leave a thin film of solder.
In order to avoid me the hassle of assembling and reassembling if the fix didn't work, I put some gasoline on a jar and put the float in -made it to the bottom by adding weight-. Next day there was gas inside the float!
Don't ask me how did it get in. I had wasted enough time, and didn't want to waste any more or assemble everything just to have to disassemble again. Bought a new float, put everything back in, and got on with my life.....
Kept the old float just in case, maybe in 20 years I'm still alive, I still keep my bike, the float fails and Honda doesn't have floats for sale... :-)