A newer version of Max is available. Click here to access the latest version of this document.


Replace NaN and infinite signal values with 0


bitsafe~ detects NaN (not a number) and +/- infinity, in an incoming signal and replaces any occurences with zero. This is useful in conjunction with the bitwise operators, or any other situation where these values are possible.




signal Input signals to bitsafe~ will have infinite and NaN values replaced with 0 in the output signal.

Information for box attributes common to all objects


signal: The resulting floating-point signal which has 0 values where infinite or NaN values existed in the input.


See Also

Name Description
bitshift~ Bit shifting for floating point signals
bitor~ Bitwise or-operation of floating point signals
bitxor~ Bitwise exclusive-or-operation of floating point signals
bitnot~ Bitwise inversion of a floating point signal
bitand~ Bitwise and-operation of floating point signals