calc-bin.el (math-format-twos-complement): Group digits when appropriate.
This commit is contained in:
parent
5ccaa35996
commit
78ed0efce4
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-05-14 Jay Belanger <jay.p.belanger@gmail.com>
|
||||
|
||||
* calc-bin.el (math-format-twos-complement): Group digits when
|
||||
appropriate.
|
||||
|
||||
2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* progmodes/sh-script.el (sh-mode-default-syntax-table): Remove.
|
||||
|
|
|
@ -845,6 +845,8 @@ the size of a Calc bignum digit.")
|
|||
(len (length num)))
|
||||
(if (< len digs)
|
||||
(setq num (concat (make-string (- digs len) ?0) num))))
|
||||
(when calc-group-digits
|
||||
(setq num (math-group-float num)))
|
||||
(concat
|
||||
(number-to-string calc-number-radix)
|
||||
"##"
|
||||
|
|
Loading…
Add table
Reference in a new issue