Re: [OctDev] miscellaneous: truncate

2012-05-20 Thread JuanPi
On Sun, Apr 15, 2012 at 1:53 PM, JuanPi 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

[OctDev] miscellaneous: truncate

2012-04-15 Thread JuanPi
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.