ectly to clamp the value between the desired range. The correct
usage should ensure that the value is clamped between the minimum and maximum bounds.</p>
<h3>Code examples</h3>
<h4>Noncompliant code example</h4>
<pre data-diff-id="1" data-diff-type="noncompliant">
min(0, max(100, x))

// or

x.max(100).min(0)
</pre>
<h4>Compliant solution</h4>
<pre data-diff-id="1" data-diff-type="compliant">
max(0, min(100, x))

// or

x.min(100).max(0)
</pre>
<h2>Resources</h2>
<h3>Documentation</h3>
<ul>
  <li> Clippy Li