Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Precision in Mathematica' topicStudent Support Forum > General > "Precision in Mathematica"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Kaveh
11/15/08 10:31am

I believe that PaddedForm command might help

PaddedForm[RandomReal[10, {7}], {3, 4}]

In this case, 4 is the number of digits after the decimal.

Here is the link:

http://reference.wolfram.com/mathematica/tutorial/\
OutputFormatsForNumbers.html

and look for PaddedForm[expr,{tot,frac}]

URL: ,

Subject (listing for 'Precision in Mathematica')
Author Date Posted
Precision in Mathematica Ali Imtiaz 10/29/08 02:04am
Re: Precision in Mathematica MF 11/14/08 07:37am
Re: Precision in Mathematica Kaveh 11/15/08 10:31am
Re: Precision in Mathematica Kyle 11/16/08 00:01am
Re: Precision in Mathematica Ali Imtiaz 11/18/08 7:36pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic