[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: round() in oct file?
From: |
Robert A. Macy |
Subject: |
Re: round() in oct file? |
Date: |
Sat, 10 Feb 2007 09:38:03 -0800 |
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
> > (http://wiki.octave.org/wiki.pl?CPPQuickReference) 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.
Re: round() in oct file?, Adrian Marks, 2007/02/10