Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing sign of result #40

Merged
merged 2 commits into from Apr 9, 2017

Conversation

quozl
Copy link

@quozl quozl commented Feb 22, 2017

Fixes #4936, thanks to work by @nguyenla.

quozl and others added 2 commits February 22, 2017 11:51
- was breaking emacs save,

- pep0263 examples use lowercase form, but regular expression is case
  blind,

- pep0263 does also say int he context of Unicode BOM marks, where both
  are used; "... the only allowed encoding for the comment is 'utf-8'"
- sine of 181 and cosine of 91 should be negative (-0.0174524064), but
  were displayed without a sign, as if positive (0.0174524064),

- sine of 181 multiplied by 10 was correctly displayed
  negative (-0.174524064),

- a constant of -0.01 was displayed as 0.0100000000,

- in format_decimal the display was composed with a sign if the value is
  negative, but when the value was less than 0.1 the sign was discarded,

- fix is to keep the sign in the display,

- bug has been present since November 2007, see e0c9a2b,

- no comprehensive math tests are in the activity; so there may be more
  such problems.

Fixes #4936.  https://bugs.sugarlabs.org/ticket/4936

Signed-off-by: James Cameron <quozl@laptop.org>
@quozl quozl mentioned this pull request Feb 22, 2017
@quozl
Copy link
Author

quozl commented Feb 24, 2017

Hey @nguyenla, could you please review this pull request? You seemed interested in fixing the problem, you originated the patch, so you're a good candidate to make a review.

@walterbender walterbender merged commit acb0857 into sugarlabs:sugar-0.94 Apr 9, 2017
@quozl quozl deleted the 2017-053-fix-4936 branch April 10, 2017 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants