<s>
Some	O
programming	O
languages	O
(	O
or	O
compilers	B-Language
for	O
them	O
)	O
provide	O
a	O
built-in	O
(	O
primitive	O
)	O
or	O
library	B-Library
decimal	B-Algorithm
data	I-Algorithm
type	I-Algorithm
to	O
represent	O
non-repeating	O
decimal	O
fractions	O
like	O
0.3	O
and	O
-1.17	O
without	O
rounding	O
,	O
and	O
to	O
do	O
arithmetic	O
on	O
them	O
.	O
</s>
<s>
Examples	O
are	O
the	O
decimal.Decimal	O
type	O
of	O
Python	B-Language
,	O
and	O
analogous	O
types	O
provided	O
by	O
other	O
languages	O
.	O
</s>
<s>
Fractional	O
numbers	O
are	O
supported	O
on	O
most	O
programming	O
languages	O
as	O
floating-point	B-Algorithm
numbers	I-Algorithm
or	O
fixed-point	O
numbers	O
.	O
</s>
<s>
A	O
decimal	B-Algorithm
data	I-Algorithm
type	I-Algorithm
could	O
be	O
implemented	O
as	O
either	O
a	O
floating-point	B-Algorithm
number	I-Algorithm
or	O
as	O
a	O
fixed-point	O
number	O
.	O
</s>
<s>
In	O
the	O
floating-point	B-Algorithm
case	O
,	O
a	O
variable	O
exponent	O
would	O
represent	O
the	O
power	O
of	O
ten	O
to	O
which	O
the	O
mantissa	O
of	O
the	O
number	O
is	O
multiplied	O
.	O
</s>
<s>
Languages	O
that	O
support	O
a	O
rational	O
data	O
type	O
usually	O
allow	O
the	O
construction	O
of	O
such	O
a	O
value	O
from	O
two	O
integers	O
,	O
instead	O
of	O
a	O
base-2	O
floating-point	B-Algorithm
number	I-Algorithm
,	O
due	O
to	O
the	O
loss	O
of	O
exactness	O
the	O
latter	O
would	O
cause	O
.	O
</s>
<s>
These	O
operations	O
may	O
be	O
translated	O
by	O
the	O
compiler	B-Language
into	O
a	O
sequence	O
of	O
integer	O
machine	B-Language
instructions	I-Language
,	O
or	O
into	O
library	B-Library
calls	O
.	O
</s>
<s>
Support	O
may	O
also	O
extend	O
to	O
other	O
operations	O
,	O
such	O
as	O
formatting	O
,	O
rounding	O
to	O
an	O
integer	O
or	O
floating	B-Algorithm
point	I-Algorithm
value	I-Algorithm
,	O
etc	O
..	O
</s>
<s>
IEEE	O
754	O
specifies	O
three	O
standard	O
floating-point	B-Algorithm
decimal	B-Algorithm
data	I-Algorithm
types	I-Algorithm
of	O
different	O
precision	O
:	O
</s>
<s>
Starting	O
with	O
Python	B-Language
2.4	O
,	O
Python	B-Language
's	O
standard	O
library	B-Library
includes	O
a	O
class	O
in	O
the	O
module	O
.	O
</s>
<s>
Ruby	B-Language
's	O
standard	O
library	B-Library
includes	O
a	O
class	O
in	O
the	O
module	O
.	O
</s>
<s>
Java	B-Language
's	O
standard	O
library	B-Library
includes	O
a	O
class	O
.	O
</s>
<s>
In	O
Objective-C	B-Language
,	O
the	O
Cocoa	B-Operating_System
and	O
GNUstep	B-Application
APIs	O
provide	O
an	O
class	O
and	O
an	O
C	O
datatype	O
for	O
representing	O
decimals	O
whose	O
mantissa	O
is	O
up	O
to	O
38	O
digits	O
long	O
,	O
and	O
exponent	O
is	O
from	O
-128	O
to	O
127	O
.	O
</s>
<s>
PL/I	B-Language
natively	O
supports	O
both	O
fixed-point	O
and	O
floating-point	B-Algorithm
decimal	O
data	O
.	O
</s>
<s>
GNU	B-Application
Compiler	I-Application
Collection	I-Application
(	O
gcc	B-Application
)	O
provides	O
support	O
for	O
decimal	O
floats	B-Algorithm
as	O
an	O
extension	O
.	O
</s>
