On Sun, Apr 15, 2012 at 1:53 PM, JuanPi <ajua...@gmail.com> wrote:
> 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/

I found the function chop.m in octave/3.6.1/m/general/chop.m that does
what I had in a much better way. I am removing the function form
miscellaneous/devel

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/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to