GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
V_acc.c File Reference

Decimal precision functions. More...

#include <grass/vask.h>
Include dependency graph for V_acc.c:

Go to the source code of this file.

Functions

void V_float_accuracy (int n)
 Set number of decimal places. More...
 

Detailed Description

Decimal precision functions.

(C) 1999-2009 by the GRASS Development Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Author
GRASS GIS Development Team
Date
1999-2009

Definition in file V_acc.c.

Function Documentation

void V_float_accuracy ( int  n)

Set number of decimal places.

V_float_accuracy() defines the number of decimal places in which floats and doubles are displayed or accepted. Num is an integer value defining the number of decimal places to be used. This routine affects subsequent calls to V_const() and V_ques(). Various inputs or displayed constants can be represented with different numbers of decimal places within the same screen display by making different calls to V_float_accuracy() before calls to V_ques() or V_const(). V_clear() resets the number of decimal places to the default (which is unlimited).

Parameters
[in]n
Returns
always returns 0

Definition at line 49 of file V_acc.c.

References n, and V__.

Referenced by V_clear().