GETFPLAC C-3

NAME

getfplac - get number of decimal places in MONEY

SYNOPSIS

#include <cbase/dtypes.h>

int getfplac()

DESCRIPTION

Getfplac returns the number of decimal places in money values. This value effects how numbers are stored internally. For example, U.S.A. format specifies 2 decimal places and money values are kept as pennies. Italy format specifies 0 decimal places and money values are kept as lire.

This number is used by programs that must make adjustments to money values (like the report writer). Most programs should not be affected by this value. This number is also used when converting a money value containing a decimal place character.

The number of decimal places is retrieved from the country format structure (see fcountry(C-3)).

SEE ALSO

fcountry(C-3), fmoneytoa(C-3), fatomoney(C-3)

C/Base Reference Manual Chapter 13, "Formatting Data Values"