var str = '0.25';

How to convert the above to 0.25?

Edit
Report