Project

General

Profile

Feature #3521

core/utils: engineering notation helpers

Added by fixeria 2 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
09/05/2018
Due date:
% Done:

0%

Spec Reference:

Description

It would be great to have some auxiliary API to parse numbers written in the engineering notation (e.g. 945.6M, -33k) to the regular numbers (float?), and, vice versa, the regular numbers to engineering notation. This is useful in the cases where a user should provide some input, such as frequency (e.g. in osmo-arfcn) or sample rate.

Inspired by GNU Radio: https://github.com/gnuradio/gnuradio/blob/master/gnuradio-runtime/python/gnuradio/eng_notation.py

If this feature also looks useful for others, I would implement it.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)