Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jon Boone
ansi-test
Commits
6ef45169
Commit
6ef45169
authored
Jan 17, 2021
by
Raymond Toy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-issue-23' into 'master'
Use char-equal in position as indicted by phoe See merge request
!45
parents
e4f8ad84
b21fe3dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
printer/format/format-e.lsp
printer/format/format-e.lsp
+2
-1
No files found.
printer/format/format-e.lsp
View file @
6ef45169
...
...
@@ -422,7 +422,8 @@
for format-string = (format nil "~~,~d,,0e" d)
for s1 = (let* ((*read-default-float-format* type)
(s1 (format nil format-string x)))
(subseq s1 (1+ (position #\. s1)) (position #\e s1)))
;; e might be lowercase or uppercase
(subseq s1 (1+ (position #\. s1)) (position #\e s1 :test #'char-equal)))
with ret = nil
do (multiple-value-bind (s2 s3)
(round-ratio-to-n-digits (rationalize x) d)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment