next | previous | forward | backward | up | index | toc

# numeric -- convert to floating point

## Synopsis

• Usage:
numeric x
numeric(prec,x)
numeric_prec x
• Inputs:
• x
• prec, an integer, the number of bits of precision to use in the computation
• Outputs:
• the expression obtained from x by converting the integers, rational numbers, and symbolic constants within it to double floating point numbers.

## Description

 i1 : x = {1,2/3,pi} 2 o1 = {1, -, pi} 3 o1 : List i2 : numeric oo o2 = {1, .666667, 3.14159} o2 : List i3 : numeric_200 pi o3 = 3.14159265358979323846264338327950288419716939937510582097494 o3 : RR (of precision 200) i4 : numeric_100 oo o4 = 3.14159265358979323846264338328 o4 : RR (of precision 100)

## See also

• RR -- the class of all real numbers
• CC -- the class of all complex numbers
• Constant

## Ways to use numeric :

• "numeric(CC)"
• "numeric(Constant)"
• "numeric(InfiniteNumber)"
• "numeric(Matrix)"
• "numeric(Number)"
• "numeric(RR)"
• "numeric(RRi)"
• "numeric(Vector)"
• "numeric(VisibleList)"
• "numeric(ZZ,CC)"
• "numeric(ZZ,Constant)"
• "numeric(ZZ,InfiniteNumber)"
• "numeric(ZZ,Matrix)"
• "numeric(ZZ,Number)"
• "numeric(ZZ,RRi)"
• "numeric(ZZ,Vector)"
• "numeric(ZZ,VisibleList)"

## For the programmer

The object numeric is .