負の剰余

公式: a-a/b*b;

<?phpの
エコー-5%3; //結果が-2、-5  - (-5)/ * 3 => 5 3  - (-1)* 3 => -2。

  

おすすめ

転載: www.cnblogs.com/f-rt/p/12098431.html