# GetMode

Gets the VML mode.

## Syntax

Fortran:

mod = vmlgetmode()

C:

mod = vmlGetMode( void );

## Output Parameters

Name | Type | Description
--- | --- | ---
mod | FORTRAN: INTEGER C: int | Specifies the packed mode parameter.

## Description

The function vmlGetMode() returns the VML mode parameter that controls accuracy, FPU, and error handling options. The mod variable value is some combination of the values listed in the Table“Values of the mode Parameter”. You can obtain some of these values using the respective mask from the Table“Values of Mask for the mode Parameter”.

Values of Mask for the mode Parameter
Value of mask | Description
--- | ---
VML_ACCURACY_MASK | Specifies mask for accuracy mode selection.
VML_FPUMODE_MASK | Specifies mask for FPU mode selection.
VML_ERRMODE_MASK | Specifies mask for error mode selection.

See example below:

## Examples

Fortran:

  mod = vmlgetmode()

  accm = IAND(mod, VML_ACCURACY_MASK)

  fpum = IAND(mod, VML_FPUMODE_MASK)

  errm = IAND(mod, VML_ERRMODE_MASK)

C:

  accm = vmlGetMode(void )& VML_ACCURACY_MASK;

  fpum = vmlGetMode(void )& VML_FPUMODE_MASK;

  errm = vmlGetMode(void )& VML_ERRMODE_MASK;

Parent topic: VML Service Functions