-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json: Fix encoding complex with negative i (#1001)
Fix encoding of complex numbers with negative imaginary components. Previously, `2 - 3i` was encoded as the following: 2+-3i Instead of the following: 2-3i Fix this by handling negative imaginary components correctly. Fixes #995
- Loading branch information
1 parent
d8fd848
commit 914c4ff
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters