[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: round() in oct file?

From: Michael Creel
Subject: Re: round() in oct file?
Date: Mon, 12 Feb 2007 09:45:43 +0100
User-agent: Thunderbird (X11/20070103)

Well, I'd like to element-by-element round all values in a matrix, without looping. Since the octave matrix class is involved, I think that this might be the place to ask. Thanks, though. Michael

Robert A. Macy wrote:
OOOPSS!!! brain dead today

neither function exists

I've simply been recasting to get the value rounded off.
double value;
int nuvalue;
nuvalue = (int) value;

but that isn't even the new form, just simpler.

should move your question to the C++ group, they're quick.

      - Robert -

On Sat, 10 Feb 2007 09:29:26 -0800
 "Robert A. Macy" <address@hidden> wrote:
usenet c++ group is best for these questions, but

it's either nuvalue=fix(value + .5); or nuvalue=rnd(value);
can't remember

    - Robert -

On Sat, 10 Feb 2007 17:12:13 +0100
 Michael Creel <address@hidden> wrote:
In the C++ quick reference
( I don't find and entry for the equivalent of round(). Anyone know that one? I'd like to apply the operator to a matrix.
Thanks, M.
Help-octave mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]