Know what you can do.
2Feb2010,19:13   #11
SpOonWiZaRd's Avatar
Well I am glad that I could be of assistance.
Newbie Member
3Feb2010,08:58   #12
EW Luxore's Avatar
Quote:
Originally Posted by SpOonWiZaRd View Post
I can mail you a nice book that I recieved for my open distance studies, You dont even need a lecturer if you have that book. Send me your email.
Hello sir... here is my e-mail: e.w.luxore@live.com.ph
Know what you can do.
3Feb2010,11:27   #13
SpOonWiZaRd's Avatar
I sent it to you too...
Go4Expert Member
3Feb2010,17:48   #14
jaikanth123's Avatar
I think u can refer this book for C++ programming..it is written by Robert A Lafore.. there is lot of things described in this its regarding c++ and data structures also.
Mentor
4Feb2010,15:02   #15
xpi0t0s's Avatar
Floats aren't bad for currency per se but you have to be aware of the limitations of converting between decimal and binary. For example 1.76 cannot be specified as an exact binary number, just as 1/3 cannot be expressed as an exact decimal number; in both cases, if you have a limited number of digits to play with you will get errors. So 1/3 to 4dp is 0.3333, but 0.3333 != 1/3. Similarly 1.76 to 8bp=1.11000010, but actually 1.76=1.(11000010100011110101) - using brackets to denote recurring digits, so in the same way you could express 1/3 exactly as 0.(3), or 1/7 as 0.(142857). 0.3333!=1/3; it's off by exactly 0.0000(3).

There was a film some years ago based around someone in a bank filtering off all the fractional results into their own account. Nobody would notice if their account was changed from $1234.120573857264 to $1234.12, but all those $0.000573857264's added up. The daft twit made the mistake of turning up to work the next day in an expensive sports car...
Know what you can do.
4Feb2010,15:16   #16
SpOonWiZaRd's Avatar
Thats clever thinking but not the part about the sportscar.