help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calculus with Matlab or octave


From: Ben Abbott
Subject: Re: Calculus with Matlab or octave
Date: Fri, 9 May 2008 20:19:40 -0400


On May 9, 2008, at 7:39 PM, address@hidden wrote:

Dear friends,

when we make some simple calculus with Octave or Matlab, how to have precise results in more than 4 decimal numbers.

example:2.9014567*8.9665531;#the result in Octave prompt is

ans=26.016

I would like to obtain a result with also six decimal figures and not three(016).

Thank you very much


Its not exactly "Calculus", but if you want more precision ...

        > x = 2.9014567*8.9665531;
        > num2str (x, "%16.12g")

Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]