Re: Should %d round?

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
Vinoba said...
AJ_Oxley said...

I would leave it as it is and state clearly in the manual that the %d argument using an atom will print only the integer part.
If it needs to be rounded, round it :)

Sounds fine to me too :) But highlight it perhaps, or add it to the common (possible?) mistakes section.

There is big pot-hole in the street where I live. It is surrounded by nice looking red pyramids, requiring everybody to drive round it. It has been there for about 3 month. I called the city, and they have acknowledged that it is a "mistake" that it has not been repaired. As I drive home at night I can't help praying that they have moved it out of the mistake section and now have it in the "pending work" section.

Then there's the guy who keeps trying to occupy city hall, demanding that all the traffic lights in the city be torn down so that the sky is clear for airplanes to fly through...

The comparison or retort would only have relevance if the vast majority of citizens and experts felt that the traffic lights should be taken off AND if there also was a demand from the pilots to extinguish the city lights.
Your retort therefore, fails a logical examination.
In the case of the pot-hole I quoted, both the logical and the practical reasoning require the pot-hole to be repaired.

Q.E.D.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu