| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Organizing source code |
From: John Beckett "Geo" wrote in message news:: > It's also got some features I don't understand why they exist, for example > when the heck would you use a float number instead of using double? C++ uses the C philosophy that if the hardware can do it, then the language should be able to call it. So, since most hardware can handle single-precision and double-precision floating point numbers, the language should handle both. The somewhat bizarre promotion rules of C/C++ mean that doubles are normally used to do non-integer calculations. If you ever wanted to work with arrays of (say) 100 million floating point numbers, you might be glad you can specify float (4 bytes in VC) rather than double (8 bytes). John --- BBBS/NT v4.01 Flag-5* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45) SEEN-BY: 633/267 270 5030/786 @PATH: 379/45 1 396/45 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.