emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New library num-base-converters


From: Tino Calancha
Subject: Re: New library num-base-converters
Date: Tue, 15 Aug 2017 11:50:44 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)



On Mon, 14 Aug 2017, raman wrote:

Ted Zlatanov <address@hidden> writes:

this functionality is present in calculator.el --
I've never called it from lisp though. That module provides additional
conversions --- including radians->degrees etc.
Thanks.
Sure, you can get this functionality with calc.el as well:
indeed num-base-converters.el internally calls `calc-number-radix'.

One point of this library is the convenience of not having to
know anything about neither calculator.el nor calc.el to get
the answer with easy.

Every Emacs user will understand the following:
M-x nbc-hex2dec ff RET
"ff hexadecimal = 255 decimal"

M-: (nbc-oct2dec "644") RET
=> 420

;; Or just `hex2dec' and `oct2dec' if you customize
;; `nbc-define-aliases' to non-nil.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]