Control the state of the warning for integer conversions and math operations.
- "query"
- The state of the Octave integer conversion and math warnings is queried. If there is no output argument, then the state is printed. Otherwise it is returned in a structure with the fields "identifier" and "state".
intwarning ("query") The state of warning "Octave:int-convert-nan" is "off" The state of warning "Octave:int-convert-non-int-val" is "off" The state of warning "Octave:int-convert-overflow" is "off" The state of warning "Octave:int-math-overflow" is "off"- "on"
- Turn integer conversion and math warnings "on". If there is no output argument, then nothing is printed. Otherwise the original state of the state of the integer conversion and math warnings is returned in a structure array.
- "off"
- Turn integer conversion and math warnings "on". If there is no output argument, then nothing is printed. Otherwise the original state of the state of the integer conversion and math warnings is returned in a structure array.
The original state of the integer warnings can be restored by passing the structure array returned by
intwarning
to a later call tointwarning
. For examples = intwarning ("off"); ... intwarning (s);See also: warning