Doing a project for school and prof recommended we use Replit. I wrote everything up there, I will link it below for reference, but it keeps outputting a double as an integer in the console. I just want to check that it’s probably a Replit bug. Let me know if something is wrong that would cause the double to output as an integer (and if you have recommendations for cleaning up the code!).
When it runs, it is supposed to display the double 100.00 right away, but displays only 100. Similar with myBet; it should be able to accept and display floating-point but either crashes or displays as an integer. I copied and pasted it to VSC, and it works fine there, but not in Replit.
tak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.