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
eba62f7a
Commit
eba62f7a
authored
May 15, 2010
by
Jay Belanger
Browse files
calc-ext.el (math-group-float): Have the number of digits being
grouped depend on the radix (Bug#6189).
parent
9beab9ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/calc/calc-ext.el
lisp/calc/calc-ext.el
+2
-1
No files found.
lisp/ChangeLog
View file @
eba62f7a
2010-05-16 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc-ext.el (math-group-float): Have the number of digits
being grouped depend on the radix (Bug#6189).
2010-05-15 Ken Raeburn <raeburn@raeburn.org>
* version.el (emacs-copyright, emacs-version): Don't define here,
...
...
lisp/calc/calc-ext.el
View file @
eba62f7a
...
...
@@ -3469,7 +3469,8 @@ If X is not an error form, return 1."
(
defun
math-group-float
(
str
)
; [X X]
(
let*
((
pt
(
or
(
string-match
"[^0-9a-zA-Z]"
str
)
(
length
str
)))
(
g
(
if
(
integerp
calc-group-digits
)
(
math-abs
calc-group-digits
)
3
))
(
g
(
if
(
integerp
calc-group-digits
)
(
math-abs
calc-group-digits
)
(
if
(
memq
calc-number-radix
'
(
2
16
))
4
3
)))
(
i
pt
))
(
if
(
and
(
integerp
calc-group-digits
)
(
<
calc-group-digits
0
))
(
while
(
<
(
setq
i
(
+
(
1+
i
)
g
))
(
length
str
))
...
...
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