I have an string defining the lattitude of an event with this format "p002.155" and "n003.196" being "p" and "n" the form the system define if the number is positive or negative.
I need to parse the string to float, tried with parseFloat but keeps getting NaN value because of the char inside the string
how can I do it?? Thanks.