I have string representation of percentage change of a stock quote in the format +6.63
and some in -0.06
, which i need to check is it a positive change or negative...
after splitting the string on + and - sign,
i can apply
Float.parseFloat(stringWithNoSign);
but is there a way to extract the string as signed and convert to float