divide a number by x decmial places

前端 未结 0 1217
野性不改
野性不改 2020-12-03 07:23

Say I have a large number, 1234567. In PHP, is there a way that I could divide this number by x decimal places?

i.e:

divide(1234567, 3) // returns 1234         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题