Hi
Any help appreciated thank you.
I have the following problem:
$number = 6478;
$value = $number/1000;
I need to round $value to the nearest 0.25 and I have no idea how to do it. In the above example this would round to 6.5.
I need it to do the following if
$number = 6695; result would be 6.75
or
$number = 6530; result would be 6.5
Any help or pointers appreciated thank you
Any help appreciated thank you.
I have the following problem:
$number = 6478;
$value = $number/1000;
I need to round $value to the nearest 0.25 and I have no idea how to do it. In the above example this would round to 6.5.
I need it to do the following if
$number = 6695; result would be 6.75
or
$number = 6530; result would be 6.5
Any help or pointers appreciated thank you