Error in toString()

Open Beginner friendly
#4 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
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Domain
cli

Research direction

Look for the toString() method in the ComplexNumber class. Write a test case for the values +0i and -0i to reproduce the issue. The fix likely involves adjusting the formatting logic to handle signed zero correctly in the imaginary part.

Written by the indexing model from the issue text.

Description

For +/-0i the method produces incorrect output. For -0.0i it looks 5.0+-0.0i

Dominant language
Java
Stars
20
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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 abdulfatir/jcomplexnumber

All issues in abdulfatir/jcomplexnumber

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.