News for hackers. Stuff that matters.
Re:Addition of 1 and 1 in PHP by michaldudek on Saturday March 09, 2013 @09:50AM (#5348510)
What if I need to add 2 and 1? Is there a lib for that? Or would this one need to be completely refactored?

Also, in what version could we expect ability to handle 2 digit (or more!) numbers?

Re:Addition of 1 and 1 in PHP by igorw2 on Saturday March 09, 2013 @02:48PM (#5349382)
The library supports adding other numbers than 1 and 1. Your use case of adding 2 to 1 is supported. As are multi-digit numbers. As are negative numbers.

As you can see, the library is quite advanced.

Re:Addition of 1 and 1 in PHP by lzh-ng on Saturday March 09, 2013 @10:02AM (#5348534)
If you're going to implement 2+1 functionality, make sure to add the appropriate unit tests.