Questions tagged [decimal]

The tag has no usage guidance.

2 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer

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: ...
Ishan's user avatar
  • 3
0 votes
1 answer

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 ...
Genevie's user avatar
  • 30