Skip to content

netromdk/describe-number

Repository files navigation

describe-number

MELPA MELPA Stable

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.

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:

(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.

About

Describe arbitrarily large number at point in Emacs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published