ゆう's Blog
Deprecated: Implicit conversion from float to int loses precision in

$moto_x = (int)$moto_x;

または、四捨五入する。
$moto_x = round($moto_x);