@@ -23,13 +23,14 @@ contributors: Oliver Medhurst, Richie Bendall
23
23
1. If _min_ is *NaN*, throw a *RangeError* exception.
24
24
1. If _max_ is not a Number, throw a *TypeError* exception.
25
25
1. If _max_ is *NaN*, throw a *RangeError* exception.
26
+ 1. If _min_ is *+0*<sub>𝔽</sub> and _max_ is *-0*<sub>𝔽</sub>, throw a *RangeError* exception.
26
27
1. If _min_ > _max_, throw a *RangeError* exception.
27
28
1. If _value_ is *NaN*, return *NaN*.
28
- 1. If _value_ is *-0*<sub>𝔽</sub> and _min_ is *+0*<sub>𝔽</sub>, return _min_ .
29
- 1. If _value_ is *+0*<sub>𝔽</sub> and _min_ is *-0*<sub>𝔽</sub>, return _min_ .
29
+ 1. If _value_ is *-0*<sub>𝔽</sub> and _min_ is *+0*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub> .
30
+ 1. If _value_ is *+0*<sub>𝔽</sub> and _min_ is *-0*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub> .
30
31
1. If _value_ < _min_, return _min_.
31
- 1. If _value_ is *-0*<sub>𝔽</sub> and _max_ is *+0*<sub>𝔽</sub>, return _max_ .
32
- 1. If _value_ is *+0*<sub>𝔽</sub> and _max_ is *-0*<sub>𝔽</sub>, return _max_ .
32
+ 1. If _value_ is *-0*<sub>𝔽</sub> and _max_ is *+0*<sub>𝔽</sub>, return *-0*<sub>𝔽</sub> .
33
+ 1. If _value_ is *+0*<sub>𝔽</sub> and _max_ is *-0*<sub>𝔽</sub>, return *-0*<sub>𝔽</sub> .
33
34
1. If _value_ > _max_, return _max_.
34
35
1. Return _value_.
35
36
</emu-alg>
0 commit comments