currencygithub.com/castedo/isomon

Name

isomon::data::num_minor_digits — Low-level C function returning minor units per major unit.

Synopsis

// In header: </home/castedo/src/isomon/currency_data.h>


int8_t num_minor_digits(isonum_t isonum);

Description

Number of decimal digits for minors units for given ISO currency numeric code.

Parameters:

isonum

ISO numeric code: is_isonum(isonum) is true

Returns:

Number of decimal digits needed for minor units 0 is returned if "currency" does not have minor units (XAU, XXX, ...)