I have a quantity field that I need toend up with in a field with a length of 14 places. the field is of a format 14.4 so I tried using
The error I got was because I am not allowed to have a decimal point in the result.
How can I get the resuly 00000000010000 for a quantity of 1 rather than 0000000001.0000?
Code:
$vQty = sprintf("%014.4f", $data[7]);
The error I got was because I am not allowed to have a decimal point in the result.
How can I get the resuly 00000000010000 for a quantity of 1 rather than 0000000001.0000?