in reply to Issue getting value from text file and keep decimal
The Perl language contains only a generic floating-point data type with no control over the number of digits to the right of the decimal point nor control over rounding and formatting ... sprintf() gives you very limited control over appearance.