Skip to main content

Questions tagged [getfloat]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

why, if coding in python, get_float accepts an int like 2 but not a float like 0.41?

In the pset6, exercise cash, get_float accepts an int like 2 but not a float like 0.41? This is a snippet from my python code: from cs50 import get_float owed = get_float("Change owed: ") ...
SaPe's user avatar
  • 1
-3 votes
1 answer
549 views

What is the GetFloat function?

GetFloat: I do not quite understand what GetFloat is. I tried to find my answer in the lecture videos, but I didn't get it, help? Thanks.
sophiemath's user avatar
0 votes
1 answer
2k views

Problem Set 1 - greedy.c - Program hangs when GetFloat() used

I have a problem with my code for "greedy.c". Essentially, the user is asked to enter an amount, but when the user enters an amount other than 0, the program stops and does not function any further, ...
jackyboy633's user avatar
0 votes
1 answer
503 views

GetFloat() is not working well in greedy

I just try to run this simply code but wtihout success. Seems that there is no exit from the loop or even getFloat() is not working as printf inside do while loop is not executed. https://gist.github....
Grzegorz Michalek's user avatar