Voting

: four plus one?
(Example: nine)

The Note You're Voting On

deekayen at hotmail dot com
23 years ago
You can use this function to format the decimal places in a number:

$num = 2.12;
printf("%.1f",$num);

prints:

2.1

see also: number_format()

<< Back to user notes page

To Top