Fork me on GitHub

Matlab中的取整-floor,ceil,fix,round

FLOOR Round towards minus infinity.

FLOOR(X) rounds the elements of X to the nearest integers
towards minus infinity.

 

CEIL Round towards plus infinity.

CEIL(X) rounds the elements of X to the nearest integers
towards infinity.

 

FIX Round towards zero.

FIX(X) rounds the elements of X to the nearest integers
towards zero.

 

ROUND Round towards nearest integer.

ROUND(X) rounds the elements of X to the nearest integers.

 

posted @ 2016-02-26 18:41  wangduo  阅读(685)  评论(0编辑  收藏  举报