Repository navigation
Added DoubleAsStringWithPrecision function - Complex Arithmetics - #1883
César Zaragoza Cortés (cesarzc) merged 6 commits into
Conversation
|
It might be a good idea to rename the PR title here to include the Kata name. Seeing 2 PR with the same title is confusing. I really got confused by this title because I know JPark1023 worked on adding this function to QDK. Also, it might be helpful to add the link to GitHub issue created by Mariia(tcNickolas) for this. |
Mariia Mykhailova (tcNickolas)
left a comment
There was a problem hiding this comment.
There is a way to reduce the scope of this change greatly and to make the code more readable. You're passing precision as an argument to the library code, so you have to define it in every task that uses the library. But the precision you use doesn't actually vary between the tasks, and the library not general-purpose but is limited to the needs of this one kata. You can instead hardcode precision within ComplexAsString and ComplexPolarAsString - this way you don't need to change any code outside the library!
Looking at the numbers involved, I don't think we need that much of precision too - none of them are smaller than 1, so 2-3 digits of precision should be plenty.
Thank you!
This reverts commit 3f572f5. Reverting changes
Got it Mariia Mykhailova (@tcNickolas), I have updated the code with changes in only 3 files. |
|
Can you please resolve conflicts in Common.qs? CI cannot run with them there |
Resolved |
Mariia Mykhailova (tcNickolas)
left a comment
There was a problem hiding this comment.
Output looks good, just one suggestion on the resolved conflict.
Thank you!
Added DoubleAsStringWithPrecision function in Complex Arithmetics Kata
This is to address the issue #1788