0
SpOonWiZaRd's Avatar, Join Date: May 2007
Know what you can do.
Well I am glad that I could be of assistance.
0
EW Luxore's Avatar, Join Date: Feb 2010
Newbie Member
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
0
SpOonWiZaRd's Avatar, Join Date: May 2007
Know what you can do.
I sent it to you too...
0
jaikanth123's Avatar
Banned
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.
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
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...
0
SpOonWiZaRd's Avatar, Join Date: May 2007
Know what you can do.
Thats clever thinking but not the part about the sportscar.