Dante and GitHub
a0a64c679f
Add Number Convert node ( #13041 )
...
* Add Number Convert node for unified numeric type conversion
Consolidates fragmented IntToFloat/FloatToInt nodes (previously only
available via third-party packs like ComfyMath, FillNodes, etc.) into
a single core node.
- Single input accepting INT, FLOAT, STRING, and BOOL types
- Two outputs: FLOAT and INT
- Conversion: bool→0/1, string→parsed number, float↔int standard cast
- Follows Math Expression node patterns (comfy_api, io.Schema, etc.)
Refs: COM-16925
* Register nodes_number_convert.py in extras_files list
Without this entry in nodes.py, the Number Convert node file
would not be discovered and loaded at startup.
* Add isfinite guard, exception chaining, and unit tests for Number Convert node
- Add math.isfinite() check to prevent int() crash on inf/nan string inputs
- Use 'from None' for cleaner exception chaining on string parse failure
- Add 21 unit tests covering all input types and error paths
2026-03-24 15:38:08 -07:00
..
2024-12-20 16:24:55 -05:00
2026-02-11 20:28:48 -05:00
2026-02-19 19:20:02 -08:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2025-09-30 23:00:22 -07:00
2026-03-15 16:18:04 -07:00
2026-02-19 19:20:02 -08:00
2026-03-20 23:15:50 -04:00
2025-09-12 17:39:55 -04:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-01-30 15:01:33 -08:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00
2026-03-19 20:42:42 -07:00
2026-02-19 19:20:02 -08:00
2025-09-12 17:38:46 -04:00
2026-03-24 17:47:28 -04:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00
2025-10-03 13:24:42 -07:00
2026-02-19 19:20:02 -08:00
2026-03-12 16:54:38 -04:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-27 08:13:24 -08:00
2026-01-22 18:36:58 -08:00
2026-02-28 16:50:18 -05:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2025-11-03 00:21:47 -08:00
2026-02-19 19:20:02 -08:00
2026-03-15 16:18:04 -07:00
2026-03-15 16:18:04 -07:00
2025-10-01 12:20:30 -07:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-01-24 17:30:40 -08:00
2026-01-24 23:02:32 -05:00
2026-02-19 19:20:02 -08:00
2025-09-27 19:11:36 -07:00
2026-02-19 19:20:02 -08:00
2026-01-05 01:58:59 -05:00
2026-03-23 18:22:24 -04:00
2026-02-19 19:20:02 -08:00
2026-02-28 20:59:24 -08:00
2026-02-19 19:20:02 -08:00
2026-03-05 18:51:28 -08:00
2025-09-29 12:03:35 -07:00
2026-02-25 23:38:46 -05:00
2026-02-19 19:20:02 -08:00
2025-08-06 04:07:04 -04:00
2026-01-22 18:36:58 -08:00
2026-02-01 01:01:11 -05:00
2026-01-22 18:36:58 -08:00
2026-02-21 19:51:21 -05:00
2025-11-18 00:26:44 -05:00
2026-03-24 15:38:08 -07:00
2025-10-01 12:18:04 -07:00
2025-10-01 12:18:49 -07:00
2026-03-12 09:55:29 -07:00
2026-02-19 19:20:02 -08:00
2025-09-27 02:36:43 -07:00
2026-01-22 18:36:58 -08:00
2026-03-15 16:18:04 -07:00
2026-01-22 18:36:58 -08:00
2026-02-20 23:46:46 -08:00
2026-02-19 19:20:02 -08:00
2025-09-26 14:10:49 -07:00
2026-02-15 02:12:30 -08:00
2026-02-27 20:53:46 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-26 19:59:05 -05:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2026-02-19 19:20:02 -08:00
2025-09-26 14:13:05 -07:00
2026-02-19 22:57:44 -05:00
2025-10-03 11:50:38 -07:00
2026-02-05 01:18:21 -05:00
2026-02-24 19:13:46 -05:00
2026-03-16 21:31:50 -04:00
2026-03-10 00:41:02 -04:00
2026-02-19 19:20:02 -08:00
2026-02-26 01:00:32 -08:00
2026-02-28 16:49:12 -05:00
2026-02-19 19:20:02 -08:00
2026-01-22 18:36:58 -08:00
2026-02-19 19:20:02 -08:00