$numbers = [
23.98,
23.98,
];
$lr = new LargestRemainder($numbers);
$result = $lr->round();
$this->assertSame(array_sum($result), 47.0);
Both numbers are getting rounded to 24.0 where I expect them to be 24, 23. Is this a bug or am I using this incorrectly?
Both numbers are getting rounded to 24.0 where I expect them to be 24, 23. Is this a bug or am I using this incorrectly?