ComfyUI/comfy_extras
Silver ea1c370368
Make Float min and max use correct typing
Due to how floating point works with rounding, setting min to `-sys.maxsize` and max to `sys.maxsize` will result in following error:
```
* PrimitiveFloat 969:
  - Value -9.223372036854776e+18 smaller than min of -9223372036854775807: value
```

The error arises because the floating-point approximation (-9.223372036854776e+18) is slightly smaller (i.e., more negative) than the precise integer value of -sys.maxsize (-9223372036854775807). 

Alternative approach would be to use sys.float_info.min and sys.float_info.max instead but that range might seem a bit excessive for a primitive node.
2025-09-08 11:09:00 +02:00
..
2025-08-21 22:05:36 -04:00
2025-08-21 22:05:36 -04:00
2025-08-16 02:07:12 -04:00
2024-05-27 19:08:27 -04:00
2025-07-18 05:43:02 -04:00
2025-04-30 20:57:30 -04:00
2024-11-10 00:10:45 -05:00
2024-05-27 19:08:27 -04:00
2024-03-18 16:54:13 -04:00
2025-07-01 02:33:07 -04:00