# PetscViewerGLVisSetPrecision
Set the number of digits for floating point values to be displayed 
## Synopsis
```
#include "petscviewer.h" 
#include "petscsys.h"    
PetscErrorCode PetscViewerGLVisSetPrecision(PetscViewer viewer, PetscInt prec)
```
Not Collective


## Input Parameters

- ***viewer -*** the `PetscViewer` of type `PETSCVIEWERGLVIS`
- ***prec   -*** the number of digits required





## See Also
 [](sec_viewers), `PETSCVIEWERGLVIS`, `PetscViewerGLVisOpen()`, `PetscViewerGLVisSetFields()`, `PetscViewerCreate()`, `PetscViewerSetType()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/glvis/glvis.c.html#PetscViewerGLVisSetPrecision">src/sys/classes/viewer/impls/glvis/glvis.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/glvis/glvis.c.html#PetscViewerGLVisSetPrecision_GLVis">PetscViewerGLVisSetPrecision_GLVis in src/sys/classes/viewer/impls/glvis/glvis.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/glvis/glvis.c)


[Index of all Viewer routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
