[Top][All Lists]

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

Re: Round function

From: Archambault Fabien
Subject: Re: Round function
Date: Tue, 26 Feb 2008 10:10:49 +0100
User-agent: Thunderbird (X11/20080213)

Oscar Bayona Candel a écrit :
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? Thanks in advance¡¡¡¡
Tecnología, moda, motor, viajes,.suscríbete a nuestros boletines para estar siempre a la última MSN Newsletters <>

Help-octave mailing list
I don't know if this function exists but you can try to use floor(x)+1.

Or take the script at : and plug a new function in your octave.

Fabien Archambault
Equipe de dynamique des assemblages membranaires
Unité Mixte de Recherches CNRS UHP 7565
Université Henri-Poincaré, Nancy I BP 239,
54506 Vandoeuvre-lès-Nancy, cedex France

Tél :

reply via email to

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