Voting

: min(four, three)?
(Example: nine)

The Note You're Voting On

Charles
16 years ago
Function to round bc string:

<?php
function bcround($strval, $precision = 0) {
if (
false !== ($pos = strpos($strval, '.')) && (strlen($strval) - $pos - 1) > $precision) {
$zeros = str_repeat("0", $precision);
return
bcadd($strval, "0.{$zeros}5", $precision);
} else {
return
$strval;
}
}
?>

<< Back to user notes page

To Top