Skip to content

Allow rounding as well as truncating in volume #253

Open
@chriscarrollsmith

Description

@chriscarrollsmith

check50 cs50/problems/2024/x/volume returns failed tests if you use the round function after multiplying by the scaling factor. Rounding is arguably more correct than simply coercing the result back to an integer, which truncates the resulting number.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions