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.

NaN to Numx

Inputs

PortAcceptsRequiredDescription
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.

PortAcceptsModeDescription
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

ParameterKindDefaultChoices / rangeUnitNotes
Target
target
multichoice none values | values_r | values_theta | values_phi | scale_r | scale_theta | scale_phi | points | points_r | points_t | points_p
Nan
nan
float none ⇄ port
Posinf
posinf
float none ⇄ port
Neginf
neginf
float none ⇄ port

Used by

No stock template or group uses this node.