Decimal numbers that may be expressed as a fraction, the denominator of which is a power of ten. For example, the numerals formula_5 represent the fractions , , . More generally, a decimal with digits after the separator represents the fraction with denominator , whose numerator is the integer obtained by removing the separator. Expressed as a fully reduced fraction, the decimal numbers are those, whose denominator is a product of a power of 2 by a power of 5. Thus the smallest denominators of decimal numbers are The "integer part", or "integral part" of a decimal is the integer written
Decimal in a computer program, even though many computer languages are unable to encode that number precisely.) Both computer hardware and software also use internal representations which are effectively decimal for storing decimal values and doing arithmetic. Often this arithmetic is done on data which are encoded using some variant of binary-coded decimal, especially in database implementations, but there are other decimal representations in use (such as in the new IEEE 754 Standard for Floating-Point Arithmetic). Decimal arithmetic is used in computers so that decimal fractional results of adding (or subtracting) values with a fixed length of their fractional part always