Answer the question
In order to leave comments, you need to log in
Adapting excel OKRWNOW to FLOOR php?
Can you please tell me how to implement the Excel formula OKRVNIZ (with rounding down to the nearest integer multiple of a certain factor) in php? The crux of the matter is that in the OKVDOWN the specified multiplier will be a multiple of the rounding result, but how to do this in php?
Thank you.
Answer the question
In order to leave comments, you need to log in
function floorLikeInExcel($number, $significance) {
return $number - fmod($number, $significance);
}
https://ideone.com/1FsnOD#NUM!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question