Function: math-group-float
math-group-float is a byte-compiled function defined in
calc-ext.el.gz.
Signature
(math-group-float STR)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-ext.el.gz
(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)
(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))
(setq str (concat (substring str 0 i)
calc-group-char
(substring str i))
i (+ i (1- (length calc-group-char))))))
(setq i pt)
(while (> i g)
(setq i (- i g)
str (concat (substring str 0 i)
calc-group-char
(substring str i))))
str))