From help-request at octave dot org Thu Jan 5 05:57:31 2006 Subject: Re: rational numbers only From: Geraint Paul Bevan To: Jorge Barros de Abreu CC: help at octave dot org Date: Thu, 05 Jan 2006 11:56:42 +0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Even better is the 'rats' command which already gives the output as a string: octave> rats(3.5) ans = 7/2 Both 'rat' and 'rats' are part of octave-forge. - -- Geraint Bevan http://www.mech.gla.ac.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iEYEARECAAYFAkO9CXgACgkQcXV3N50QmNN77gCfZKoCc598tkj/4jlpVtJCAbO1 4iYAn3PSCD0UEwpdVdMEHPEM7LYo2uCo =rKV3 -----END PGP SIGNATURE----- ------------------------------------------------------------- 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 -------------------------------------------------------------