Re: [nyphp-talk] Using greater than zero or multiplication?

2012-06-27 Thread David Krings
On 6/27/2012 4:45 AM, Leam Hall wrote: Morning all! I'm working on my Tech Dive Planner and wanted to get a best practice idea from you. There are some calculations that need 3-5 variables set or the calculation isn't done. Since all the inputs are numeric and set to a default of zero, is it bet

Re: [nyphp-talk] Using greater than zero or multiplication?

2012-06-27 Thread Rick Retzko
IMHO: Testing the sum tells you nothing about the components but should be included following the test of each component. -Original Message- From: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] On Behalf Of Leam Hall Sent: Wednesday, June 27, 2012 4:45 AM To: NYPHP Talk

[nyphp-talk] Using greater than zero or multiplication?

2012-06-27 Thread Leam Hall
Morning all! I'm working on my Tech Dive Planner and wanted to get a best practice idea from you. There are some calculations that need 3-5 variables set or the calculation isn't done. Since all the inputs are numeric and set to a default of zero, is it better to test each input to see if it's