Answer the question
In order to leave comments, you need to log in
How to perform division with a remainder in php and get the correct result?
Good time!
I can't beat the puzzle how to divide in php so that the number gives out with the correct remainder, and not "crazy".
Please help php experts, I broke my whole head) I will give
examples here is the code:
<?php
$one = 100;
$two = 2396100;
$ravno = $one / $two;
echo round($ravno, 9);
?>
<?php
$one = 350;
$two = 2396100;
$ravno = $one / $two;
echo round($ravno, 9);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question