### 8.6 Numeric value

There are also characters that represent numbers without a digit system, like
the Roman numerals, and fractional numbers, like 1/4 or 3/4.

The following type represents the numeric value of a Unicode character.

— Type:

**uc_fraction_t**
This is a structure type with the following fields:

int numerator;
int denominator;

An integer `n` is represented by `numerator = `

`n`,
`denominator = 1`

.

The following function converts a number character to its numerical value.

— Function: uc_fraction_t

**uc_numeric_value** (

`ucs4_t uc`)

Returns the numeric value of a Unicode character.
The return value is a fraction, or the pseudo-fraction `{ 0, 0 }`

for
characters that do not represent a number.