- Date: Feb 11, 2010
- Author: Rakshit Patel
- Comments: 6
- Categories: Programming Facts
var a = "10";
var float_num = parseFloat(a); // parse as float number
var accurate = float_num.toFixed(2) ); // Will return "10.00"