Author | Message |
---|---|
acerva48
Posts: 7
|
Posted 20:37 Sep 03, 2017 |
I finished writing a running program but I realized the number of slices comes out to be "18.0155...". In the instructions, Keenan asks for the output to be a whole number. So I'm assuming I'm wrong with the output I obtain, does anybody know how I can fix it without rounding? |
dtang9
Posts: 52
|
Posted 21:08 Sep 03, 2017 |
You need to change the datatype of your number of slices. Try casting it into an integer. |
acerva48
Posts: 7
|
Posted 21:18 Sep 03, 2017 |
Gotcha, that's what I'm trying to figure out right now. Thank you. |
acerva48
Posts: 7
|
Posted 21:24 Sep 03, 2017 |
Just got it, thank you dtang9 once again for your input. Highly appreciate it. |