Problems with converting a String to a float

Hello,

I can assist if you edit your original code and format it as per:
https://discourse.processing.org/faq#format-your-code

:)