Questions tagged [decimal]
The decimal tag has no usage guidance.
3
questions
0
votes
1
answer
103
views
Greedy numbers between 0 and 1 .... and 4.2
I have good number of coins for number over 1 with decimal (ex: 2.7, 5.1). And wrong number of coins only with numbers between 0 to 1 (0.99 or 0.41): always 0. plus the check50 says that it doesn't ...
0
votes
1
answer
62
views
Hexadecimal to Decimal Conversion - Loop runs in reverse order (opposite to what is expected)!
The following code converts Hexadecimal numbers to Decimal numbers (successfully). I'm unable to figure out why the code behaves in just the opposite manner as it should be!
I was planning to write:
...
0
votes
1
answer
68
views
Get Int wont accept my decimal Input
So I'm in pset1 and I'm trying to finish the problem set "change". I have the whole program finished... the problem is that getint() wont let me grab decimal numbers. Im not sure if I have to add a ...