I have number like '5.5'. we want to display like '5.500'. I could use number format function for this. But it is returning string.
$total_charges =number_format((float)$number, 3, '.', '');
When I use string value in mongodb so its not sort or filter in proper way.
array('total_charges'=>array('$gte'=>100,'$lte'=>200))
There is any function like number format that return numeric value with particular decimal places.