Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ansi-test
ansi-test
Commits
b21fe3dc
Commit
b21fe3dc
authored
Jan 17, 2021
by
Karsten Poeck
Committed by
Raymond Toy
Jan 17, 2021
Browse files
Use char-equal in position as indicted by phoe
parent
e4f8ad84
Changes
1
Hide whitespace changes
Inline
Side-by-side
printer/format/format-e.lsp
View file @
b21fe3dc
...
@@ -422,7 +422,8 @@
...
@@ -422,7 +422,8 @@
for format-string = (format nil "~~,~d,,0e" d)
for format-string = (format nil "~~,~d,,0e" d)
for s1 = (let* ((*read-default-float-format* type)
for s1 = (let* ((*read-default-float-format* type)
(s1 (format nil format-string x)))
(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
with ret = nil
do (multiple-value-bind (s2 s3)
do (multiple-value-bind (s2 s3)
(round-ratio-to-n-digits (rationalize x) d)
(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