help-octave
[Top][All Lists]
Advanced

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

precision


From: Gorazd Brumen
Subject: precision
Date: Thu, 01 Dec 2005 11:48:12 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920


sorry for the dumm question,

how do you set the precision in the matrix output like this:
integers numbers are printed integers and
floats are rounded to 2 digits past the dec. point.

like 5 6 1.23

cause i always get: saving [1 2 3] is ok (produces 1 2 3),
but saving
[1 2 3.23] makes [1.0000 2.0000 3.2300] in the output.

is there an easy way to do this?

thanks,
gorazd

--
Gorazd Brumen
Mail: address@hidden
WWW: http://valjhun.fmf.uni-lj.si/~brumen
PGP: Key at http://pgp.mit.edu, ID BCC93240



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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