The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: to increase number of digits after decimal place in MATLAB
Replies: 5   Last Post: Jan 15, 2016 1:04 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 9,850
Registered: 6/7/07
Re: to increase number of digits after decimal place in MATLAB
Posted: Dec 9, 2012 1:58 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 12/9/2012 12:44 PM, gouri halde wrote:
> How you can increase precision of answer (a number) in MATLAB? Actually
> I have to generate a chaotic time series using certain chaotic map. I
> got the series values but all of them are the same. I think if I could
> increase the number of digits after the decimal point I may get the
> minute variation in the series values.I am getting a precision of 4. For
> a perfect chaotic series I should have (may be)at least equal to 8. I am
> having a 64 bit operating system.

At the command line

format long % doc format

NB internal precision is double by default so there are roughly 15 bits
of precision it's only the display that is shortened for (usually)

If you need the results in text other than at command window,

doc fprintf % and friends

and use format string as desired...


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.