Closed
Description
Currently some solutions check if resistance value is >= 1000 and use integer division to switch to kilo-ohms, which causes loss of precision for values that are larger than 1000, but are not divisible by 1000.
This testcase will ensure divisibility by 1000 before transitioning to kilo-ohms.
{
"description": "Red and red and red",
"property": "label",
"input": {
"colors": ["red", "red", "red"]
},
"expected": {
"value": 2200,
"unit": "ohms"
}
},
Metadata
Metadata
Assignees
Labels
No labels