Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 21 days ago
JSON representation

Describe arbitrarily large number at point in Emacs.

Awesome Lists containing this project

README

        

# describe-number

[![MELPA](http://melpa.org/packages/describe-number-badge.svg)](http://melpa.org/#/describe-number)
[![MELPA Stable](http://stable.melpa.org/packages/describe-number-badge.svg)](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`:

![](demo-num.png)

The package understands binary, octal, and hexadecimal prefixes, i.e. "b", "0b", "#b"; "o", "0o", "#o"; and "x", "0x", "#x" respectively:

![](demo-prefix-num.png)

Arbitrarily large number inputs are supported:

![](demo-arb-num.png)

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

![](demo-string.png)

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