0 Members and 1 Guest are viewing this topic.
_$ (format-eng 1232340.32 1)"1.2·10\\s\\up4(6)"_$ (format-eng 0.123234032 2)"123.23·10\\s\\up4(-3)"_$ (format-eng 0.000123234032 2)"123.23·10\\s\\up4(-6)"_$ (format-eng 123.456 2)"123.46"
_$ (format-eng1 0.123234032 2)"0.12"_$ (format-eng1 0.000123234032 2)"0.12·10\\s\\up4(-3)"
Much better Lee, As always your code its great
But I want to do the exponent multiply of 33 6 9 12
Code - Auto/Visual Lisp: [Select]ex (- (setq ex (fix (/ (log num) (log 10)))) (rem ex 3)))
Code - Auto/Visual Lisp: [Select](setq ex (- (setq ex (fix (/ (log num) (log 10)))) (rem ex 3) (cond ((< ex 0) 3) (t 0))))