Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
91da6442
Commit
91da6442
authored
Apr 14, 2002
by
Colin Walters
Browse files
(math-format-number): Load `calc-ext' before we call
`math-group-float'.
parent
bde57911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
lisp/calc/calc.el
lisp/calc/calc.el
+9
-6
No files found.
lisp/calc/calc.el
View file @
91da6442
...
...
@@ -3145,8 +3145,9 @@ If mouse is pressed in Calc window, push cut buffer contents onto the stack."
(setq str (concat (substring str 0 (- figs)) point
(substring str (- figs))))
(setq str (concat str point)))
(if calc-group-digits
(setq str (math-group-float str))))
(when calc-group-digits
(require 'calc-ext)
(setq str (math-group-float str))))
(if (< figs 0)
(setq figs (+ calc-internal-prec figs)))
(if (> figs 0)
...
...
@@ -3174,8 +3175,9 @@ If mouse is pressed in Calc window, push cut buffer contents onto the stack."
(t ; (< dpos 0)
(setq str (concat "0" point
(make-string (- dpos) ?0) str))))
(if calc-group-digits
(setq str (math-group-float str))))
(when calc-group-digits
(require 'calc-ext)
(setq str (math-group-float str))))
(let* ((eadj (+ exp len))
(scale (if (eq fmt 'eng)
(1+ (math-mod (+ eadj 300002) 3))
...
...
@@ -3186,8 +3188,9 @@ If mouse is pressed in Calc window, push cut buffer contents onto the stack."
(if (< scale (length str))
(setq str (concat (substring str 0 scale) point
(substring str scale))))
(if calc-group-digits
(setq str (math-group-float str)))
(when calc-group-digits
(require 'calc-ext)
(setq str (math-group-float str)))
(setq str (format (if (memq calc-language '(math maple))
(if (and prec (> prec 191))
"(%s*10.^%d)" "%s*10.^%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