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.

daguilar (1) [Avatar] Offline
#1
I was writing a function that kept not working, and the console continued to print out the error "class 'Std' has no member 'ftoint'". This seemed strange because Std.ftoint is exactly what the textbook says to use to convert a float to an int. When I changed this to "ftoi" it read that part of the code fine. Is this a typo in the textbook?
perry.cook (29) [Avatar] Offline
#2
Re: "Std.ftoint" should be "ftoi"?
So sorry! Bug in the book. Fixed in the newest version.