help-octave
[Top][All Lists]
Advanced

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

Re: Round function


From: Søren Hauberg
Subject: Re: Round function
Date: Tue, 26 Feb 2008 09:40:48 +0100

tir, 26 02 2008 kl. 09:28 +0100, skrev Oscar Bayona Candel:
> Hi all
>  
> I´m trying to use the function round to obtain the nearest number like
> this:
>  
> so round(4.7)=5 and round(4.2)=4
>  
> What I want is to use (if exists) the round figure but always to the
> next high number so 
>  
> roundxxx(4.2)=5....exists any function "roundxxx" I mean similar to
> round that applied gives the next round (high) number? 
That would be the 'ceil' function. When you want the opposite use the
'floor' function.

Søren



reply via email to

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