https://github.com/netromdk/describe-number
Describe arbitrarily large number at point in Emacs.
https://github.com/netromdk/describe-number
describe emacs hexadecimal melpa
Last synced: about 2 months ago
JSON representation
Describe arbitrarily large number at point in Emacs.
- Host: GitHub
- URL: https://github.com/netromdk/describe-number
- Owner: netromdk
- License: gpl-3.0
- Created: 2015-10-25T12:49:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-01T01:01:22.000Z (over 9 years ago)
- Last Synced: 2025-04-09T17:05:25.317Z (about 2 months ago)
- Topics: describe, emacs, hexadecimal, melpa
- Language: Emacs Lisp
- Homepage:
- Size: 328 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# describe-number
[](http://melpa.org/#/describe-number)
[](http://stable.melpa.org/#/describe-number)Describe arbitrarily large number value at point or region in Emacs. If value is a number then binary/octal/decimal/hexadecimal/character values and conversions are shown. For strings each character is processed in the same way.
Arbitrarily large numbers are supported via [yabin.el](https://github.com/d5884/yabin).
Use `describe-number-at-point` on point/region or `describe-number` to input value manually.
Might be preferable to bind `describe-number-at-point` to some key:
```elisp
(global-set-key (kbd "M-?") 'describe-number-at-point)
```# Demo
When using "101" as input to `describe-number-at-point` or `describe-number`:
The package understands binary, octal, and hexadecimal prefixes, i.e. "b", "0b", "#b"; "o", "0o", "#o"; and "x", "0x", "#x" respectively:

Arbitrarily large number inputs are supported:

In the case of using a string, e.g. "bin", it will process each character value separately:

"b->d" means binary to decimal, "o->d" means octal to decimal, and "x->d" means hexadecimal to decimal.