Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Bug for Solution for part02-03_typecasting

Open
#32 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
content

Research direction

Start by running the shown typecasting example with 1.3 and inspect the expected output for the exercise. Confirm how the integer and decimal parts should be represented, then update the solution so the reported decimal part matches that expectation and verify the example again.

Written by the indexing model from the issue text.

Description


number = float(input("Please type in a number: "))
--
intpart = int(number)
decpart = number - intpart
print(f"Integer part: {intpart}")
print(f"Decimal part: {decpart}")
 

1.3 returns 0.2999999999999998

Dominant language
JavaScript
Stars
78
Forks
28
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rage/programming-26

All issues in rage/programming-26

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.