I want to output the float value array to a CSV-File in a data format like 06.5000
.
Is there a way in Python to trim the decimal point and to the left of the decimal point, like awk's printf
, or matlab's fprintf
?
Most of the Python advice I found on the net was only to control information to the right of the decimal point.