Sending data from arduino to processing, serially.

How can i modify the above programs so that i can send and receive negative and positive floating point numbers.

As Mike says, you can send data as a string. But, where are these floating point values coming from? What is Processing going to do with them? Floating point processing is not the Arduino's strong suit. so making Processing do the conversion from string to float or from int to float would be a better idea, if that is realistic.