The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

danbernier (22) [Avatar] Offline
#1
On page 54 of the book (not the PDF), the text says:

"Interestingly, storing an int into a float requires no work, because no data or accuracy could be lost in the process. So
220 => int myFreq;
myFreq => float myFloatFreq;
works just fine, because 220 just gets changed into 220.0, no data is lost, and accuracy is actually gained (for use later if we need it)."

I think you're talking about precision here, meaning that the datatype supports rational non-integer numbers.
perry.cook (29) [Avatar] Offline
#2
Re: Chapter 2, page 54: accuracy vs precision
Yep. You are correct. PS: the flurry of my replies here
is because I've been in Africa for a few weeks. Back in
the saddle now, and ready to start finishing up this book !