help-octave
[Top][All Lists]
Advanced

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

Weird precision in matrix


From: studentpol
Subject: Weird precision in matrix
Date: Sat, 19 Nov 2011 03:02:03 -0800 (PST)

Hi everyone
I started using octave recently, so im still quite a noob at it. I have
script like this:

###
format long
A=[0, 583.33346 , 0, 0, 0]
###

When im running it i recieve:
A =

 Columns 1 through 3:

     0.000000000000000   583.333459999999945     0.000000000000000

 Columns 4 and 5:

     0.000000000000000     0.000000000000000

Why it looks like this? I wanted just precisly 583.33346. How to do it?
Thanks in advance.
Regards
Matthias

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Weird-precision-in-matrix-tp4086077p4086077.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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