rfc:clamp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:clamp [2021/07/03 14:35] – Add NAN behaviour thinkverserfc:clamp [2021/07/06 12:59] – Update NAN behaviour upon suggestion thinkverse
Line 34: Line 34:
 </code> </code>
  
-Handling NAN; passing NAN to either of the range values will throw a TypeError since passing NAN will invalidate the range. Might throw ValueError instead of TypeError.* If NAN is passed to num, clamp will return float(NAN). +Handling NAN; passing NAN to either of the range values will throw above ''ValueError'' since passing NAN will invalidate the range.
- +
- +
-* Will change type if the exception isn't correct for this scenario.+
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
rfc/clamp.txt · Last modified: 2023/06/12 13:59 by thinkverse