Fix #3756: Convert values to float for number formatting

Convert string values to floating point, so that `number_format` method can properly format values.
Fix #3756: Convert values to float for number formatting
Merge pull request #3758 from kartik-v/patch-7

Fix #3756: Convert values to float for number formatting