On Fri, Feb 23, 2007 at 03:46:24PM +0000, Steve Smith wrote:
> Hi - I would use avwmaths++
> Given that you can force the output datatype to be int with "-odt
> int", it should be straightforward to do this with a few simple calls
> to avwmaths++
If I understand you correctly, you are suggesting that I should use
"-odt int" to implement the floor function as in
r = a - n * floor( a/n )
(where r is the remainder of the division of a by n)
When I try to use "-odt int" in this way, I find that it casts the
real number to an integer that results from a rounding function,
rather than a floor function.
I'd be grateful if you could give me another hint if I've misread your
suggestion.
Thanks
Rolf
> Cheers, Steve.
>
>
> On 23 Feb 2007, at 15:30, Rolf Heckemann wrote:
>
> >I'm looking for a way to obtain the remainder of a division in
> >avwmaths, ideally like this:
> >
> >avwmaths elevens -mod tens ones
> >
> >Is there a way to obtain this result using the current version?
> >Alternatively, could I request this as a feature for avwmaths?
> >
> >Thanks
> >
> >Rolf Heckemann
|