ApCoCoA-1:Dec: Difference between revisions
From ApCoCoAWiki
New page: <command> {{PAGENAME}} </command> |
No edit summary |
||
Line 1: | Line 1: | ||
<command> | <command> | ||
<title>Dec</title> | |||
<short_description>Pretty Printing of Objects.</short_description> | |||
<syntax> | |||
Dec(X:Object, Digits:INT):Object | |||
</syntax> | |||
<description> | |||
This function prints (rational) numbers within the object <tt>X</tt> as a floating point number up to <tt>Digits</tt> Digits. The floating point numbers are represented as strings. | |||
<itemize> | |||
<item>@param <em>X</em> The object whose numbers should be printed as floating points. X can be MAT, LIST, POLY, INT, RAT or iteration thereof.</item> | |||
<item>@param <em>Digits</em> Gives the exactness of printing.</item> | |||
<item>@return The given object with floating point numbers represented as strings instead of (rational) numbers.</item> | |||
</itemize> | |||
</description> | |||
<types> | |||
<type>matrix</type> | |||
<type>list</type> | |||
<type>polynomial</type> | |||
<type>integer</type> | |||
<type>rat</type> | |||
</types> | |||
<seealso> | |||
<see>Print<see> | |||
<see>Print On<see> | |||
<see>PrintLn<see> | |||
</seealso> | |||
<key>Dec</key> | |||
<key>Print</key> | |||
<key>printing</key> | |||
<key>float</key> | |||
[[Category:ApCoCoA Manual|{{PAGENAME}}]] | [[Category:ApCoCoA Manual|{{PAGENAME}}]] | ||
</command> | </command> |
Revision as of 15:30, 24 April 2009
Dec
Pretty Printing of Objects.
Syntax
Dec(X:Object, Digits:INT):Object
Description
This function prints (rational) numbers within the object X as a floating point number up to Digits Digits. The floating point numbers are represented as strings.
@param X The object whose numbers should be printed as floating points. X can be MAT, LIST, POLY, INT, RAT or iteration thereof.
@param Digits Gives the exactness of printing.
@return The given object with floating point numbers represented as strings instead of (rational) numbers.
See also
<see>Print<see> <see>Print On<see> <see>PrintLn<see>