Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.3 - Français

Change language to:
English - 日本語 - Português

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Aide Scilab >> Fonctions Elémentaires > Virgule flottante > int

int

arrondi vers zéro

Séquence d'appel

y=int(X)

Paramètres

X

matrice réelle

y

matrice d'entiers

Description

int(X) renvoie une matrice d'entiers dont les éléments sont les arrondis vers zéro des éléments de x. Cette fonction est la même que la fonction fix.

Exemples

int([1.3 1.5 1.7 2.5 3.7])
// Remarquez le résultat pour x négatif
int([-1.3 -1.5 -1.7 -2.5 -3.7])

Voir aussi

  • round — Arrondi à l'entier le plus proche
  • floor — Arrondi vers le bas
  • ceil — Arrondi vers le haut
  • fix — arrondi vers zéro
<< frexp Virgule flottante isinf >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:10:37 CEST 2011