help-octave
[Top][All Lists]
Advanced

[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 2.0.0.9 (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 <http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com>
------------------------------------------------------------------------

_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave
I don't know if this function exists but you can try to use floor(x)+1.

Or take the script at : http://octave.sourceforge.net/doc/f/floor.html 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 : 03.83.68.43.96



reply via email to

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