We recommend using Visual Studio 2017

Math Error M6108

 

The latest version of this topic can be found at Math Error M6108.

square root

The operand in a square-root operation was negative.

Program terminates with exit code 136.

System_CAPS_ICON_note.jpg Note

The sqrt function in the C run-time library and the FORTRAN intrinsic function SQRT do not generate this error. The C sqrt function checks the argument before performing the operation and returns an error value if the operand is negative. The FORTRAN SQRT function generates the DOMAIN error M6201 instead of this error.

Show: