Skip to content

Commit 21c1dda

Browse files
authored
update RgbHsvConversion.js
1 parent b85ac9a commit 21c1dda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Conversions/RgbHsvConversion.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ Test hsvToRgb-method
3535
[128, 32, 80]
3636
3737
Test rgbToHsv-method
38-
approximate-assertions needed because of small deviations due to converting between
39-
int-values and double-values.
38+
function "approximatelyEqualHsv" needed because of small deviations due to rounding for the RGB-values.
4039
> approximatelyEqualHsv(rgbToHsv(0, 0, 0), [0, 0, 0])
4140
true
4241
> approximatelyEqualHsv(rgbToHsv(255, 255, 255), [0, 0, 1])

0 commit comments

Comments
 (0)