The variable "distance" might have string in front, when passing the 100 m, and in that case, toFloat would give 0 because it will not parse a number starting with string, and you get 0 cm. My guess is to see what it really has as value above 100 meters, then format accordingly.
@TasteTheCode6 ай бұрын
Yes, correct. I wanted to try the same but I ran out of time for the video.
@DanielAngelovski6 ай бұрын
@@TasteTheCode If the limit is 100 meters, then probably it stops sending a value, and shows some error message
@unl0ck9986 ай бұрын
Are you going to open sauce?
@TasteTheCode6 ай бұрын
No, but I wish I could. It's way too far for me and economically not viable.