Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

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

Scilabヘルプ >> Elementary Functions > Floating point > int

int

ゼロ方向への丸め

呼び出し手順

y=int(X)

引数

X

実数行列

y

整数行列

説明

int(X) は実数行列 Xの整数部を返します. fixと同じです.

int([1.3 1.5 1.7 2.5 3.7])
// 負のxに関する結果に注意
int([-1.3 -1.5 -1.7 -2.5 -3.7])

参照

  • round — 最も近い整数に丸める
  • floor — 下方向への丸め
  • ceil — 切り上げ
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:58:21 CEST 2014