Number to Scientific Prefix

Convert a numeric value to SI-prefixed text (aka engineering / metric prefix). Bonus: binary prefixes!

Download
Download

General Information

MATLAB Release Compatibility

  • Compatible with R2009b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
5.0.5

* Documentation changes

Download
5.0.4

- Simplify trailing zero removal.
- Add and improve testcases.

Download
5.0.3

* convert test function to class.

Download
5.0.2

- Code and documentation refactoring
- Add engineering notation (experimental)

Download
5.0.1

- Documentation improvements.
- Added WAITBAR to test function.

Download
5.0.0

* New options and option parsing.
* Revised outputs.

Download
4.1.5

* update image.

Download
4.1.4

* Documentation improvements.
* Example RKM function.

Download
4.1.3

* Improve test function robustness.

Download
4.1.2

* Correct SEE ALSO references.

Download
4.1.1

* Update screenshot.

Download
4.1.0

* Add 3rd and 4th output arguments.
* Optimisations for code performance.
* Improve test function robustness.
* Add more test cases.

Download
4.0.2

* Fix bug with fixed-prefix special-case values (0, Inf, NaN).
* Add plenty of new testcases.

Download
4.0.1

* Fix HTML table formatting.

Download
4.0.0

* Accept string type inputs.
* Includes prefixes ronna, quetta, ronto and quecto.
* Improve error messages and IDs.

Download
3.2.1

* Add error IDs.

Download
3.2.0

* Add second output argument that indicates if a prefix is used or not.
* Add bonus function NUM2RKM.

Download
3.1.3

* More test cases.
* More robust whitespace handling.

Download
3.1.2

* Update documentation.
* Default non-breaking space.

Download
3.1.1

* Improve documentation.

Download
3.1.0

* Return micro character 'µ' (rather than 'u').

Download
3.0.1

* Improve documentation.

Download
3.0.0

* Add "fixed" prefix input option.
* Rewrite algorithm to use local functions.

Download
2.1.0

* Add HTML documentation.
* Empty inputs use default values.

Download
2.0.0

* Split subimssion into two: one for num->str, other for str->num.
* Rename all functions.

Download
1.13.0

- Improve handling of trailing zeros.
- Improve input checking.

Download
1.12.0

- Default is now lower-case E-notation.

Download
1.11.0

- Add control over allowing trailing zeros in string.
- Convert all string coefficients into numeric (not just the first one).
- Return split string parts as a cell array.

Download
1.10.0

- Edit the help section a little.

Download
1.9.0

- Str->Num: space character between coefficient and prefix is optional.
- Str->Num: NaN and Inf may occur with prefixes.
- Help: Simplify prefix tables.

Download
1.8.0

Upload all four functions for converting between numeric and string, for both SI and binary.

Download
1.6.0

- Fix edge case (val=1).

Download
1.5.0

- Allow positive/negative input value.
- Consistent handling of Inf/NaN values.

Download
1.3.0

Provide useage examples.

Download
1.1.0

Edit file description to be more accurate.

Download
1.0.0

Download