Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
乗算から整数オーバーフロー値を取得7.233907357909E+16します。
7.233907357909E+16
今私は法を計算する必要があります7.233907357909E+16 % 15。
7.233907357909E+16 % 15
どうすれば解決できますか、これを行う方法はありますか?
任意精度の計算をbcmul検討する必要があります。bcmod
bcmul
bcmod
例:
$res = bcmul('134334244395933282', '2834783723423487283'); $modRes = bcmod($res, '15'); echo $modRes;