Nodes ▸ Functions ▸ Unary ▸ Misc
NaN to Num
Replaces NaN and infinite values with finite numbers; NaN becomes zero unless you choose other replacements.
Wraps nan_to_num.
Inputs
| Port | Accepts | Required | Description |
|---|---|---|---|
x | primitive(array) dataset | required | The array or dataset the function is applied to |
Parameter ports
Added from the Parameters pane (⊕). While connected, each drives its parameter.
| Port | Accepts | Mode | Description |
|---|---|---|---|
nan | primitive(number) | opt-in drives nan | Drives the Nan parameter while connected |
posinf | primitive(number) | opt-in drives posinf | Drives the Posinf parameter while connected |
neginf | primitive(number) | opt-in drives neginf | Drives the Neginf parameter while connected |
Outputs
datasetprimitive(array)
Parameters
| Parameter | Kind | Default | Choices / range | Unit | Notes |
|---|---|---|---|---|---|
Targettarget | multichoice | none | values | values_r | values_theta | values_phi | scale_r | scale_theta | scale_phi | points | points_r | points_t | points_p | ||
Nannan | float | none | ⇄ port | ||
Posinfposinf | float | none | ⇄ port | ||
Neginfneginf | float | none | ⇄ port |
Used by
No stock template or group uses this node.