Hi all,

I added a prototype of a function to miscellaneous/devel
http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/miscellaneous/devel/truncate.m?revision=10226&view=markup

The functions should "truncate" a number to a given order of
magnitude, e.g. truncate(0.127, -2) == 0.13. The method for
"truncateion" can be selected, e.g. truncate(0.127, -2,@floor) == 0.12

Do you have nay suggestions fro improvement? Does this function exists already?

Thanks

-- 
JuanPi Carbajal
-----
"The bad economist pursues a small present good, which will be
followed by a great evil to come, while the true economist pursues a
great good to come, at the risk of a small present evil." - Frédéric
Bastiat
-----
http://ailab.ifi.uzh.ch/carbajal/

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to