Skip to content

not getting an expected result with 2 numbers #3

@jdnwi

Description

@jdnwi
		$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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions