MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3v4l98/php_7_released/cxkj3bg/?context=3
r/programming • u/fnkrx • Dec 02 '15
729 comments sorted by
View all comments
Show parent comments
13
Integer division with intdiv()
The new intdiv() function performs an integer division of its operands and returns it.
Looks like they finally added intdiv() !
3 u/[deleted] Dec 02 '15 Why? Performance? 1 u/minimim Dec 02 '15 Floating point division is inaccurate. 10 u/featherfooted Dec 02 '15 The question is why is this a function and not an infix operator.Not why int division exists. → More replies (6)
3
Why? Performance?
1 u/minimim Dec 02 '15 Floating point division is inaccurate. 10 u/featherfooted Dec 02 '15 The question is why is this a function and not an infix operator.Not why int division exists. → More replies (6)
1
Floating point division is inaccurate.
10 u/featherfooted Dec 02 '15 The question is why is this a function and not an infix operator.Not why int division exists. → More replies (6)
10
The question is why is this a function and not an infix operator.
Not why int division exists.
→ More replies (6)
13
u/Scroph Dec 02 '15
Looks like they finally added intdiv() !