Function to convert string to a number

Hello,

I need a function to convert a string to a number. Something similar to atof() in C.

The problem is that I read an oid from a licensed link and the return a string, f.e. “-42”. There is no way to directly graph this, always returns 0 as data source.

Any idea?

Thanks,

Miquel.