小数点以下四捨五入
round (off) 〜 to the (nearest) integer
http://www.geocities.jp/bananajuku/r_c/floor.html
#include
int f(double x)
{return int(floor( 0.5 + x )) ;}
round (off) 〜 to the (nearest) integer
http://www.geocities.jp/bananajuku/r_c/floor.html
#include
int f(double x)
{return int(floor( 0.5 + x )) ;}