Or the two arguments constructor? Both will allow the VAT reference to be null. Beware of nulls; they can cause you no end of trouble. But in the case of a VAT reference, there are lots of people who are not registered and haven't got a VAT reference. That may require special logic.Carey Brown wrote:Are you sure you really want/need the no-argument constructor? . . .
Campbell Ritchie wrote:I see you have been told to use floats
Your interpretation fo between 2020 and 2050 is different from Carey's. I would think Carey's version is correct.
That's a good idea. Another good idea is to learn about the two ways of doing precise arithmetic:-Dave Bourke wrote:. . . after I do my tests as an improvement i will suggest double, . . .
That's a pleasure I agree; you learn more from mistakes and correcting them than from getting everything right first time.Thank you this was a great learning experience( i think you learn more from your mistakes )
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |