Divide Int to Int and return Int

前端 未结 2 1363
清歌不尽
清歌不尽 2021-02-02 05:13

I need a function which gets two Ints (a and b) and returns A/B as Int. I am sure that A/B will alw

2条回答
  •  独厮守ぢ
    2021-02-02 05:33

    Why not just use quot?

    quot a b
    

    is the integer quotient of integers a and b truncated towards zero.

提交回复
热议问题