Problems with utils.stringToNumber

I have a doubt, with the function utils.stringToNumber i have a string that contains “-7”, and when i converted is 7, and loss the sign. Are any solution for this?

Hi,

You could try this,

strVar =‘-7’;
nrVar = strVar-0

Regards,

Peter

Also try:

parseInt("-7");