float_params

Version 1.0.0 (3,06 KB) von Nick Higham
MATLAB Code for Parameters of Floating-Point Arithmetics
92 Downloads
Aktualisiert 15 Apr 2022

`float_params` is a MATLAB function for obtaining the parameters of several
floating-point arithmetics. The parameters are built into the code and are
not computed at run time.

The parameters are

- the unit roundoff,
- the smallest positive (subnormal) floating-point number,
- the smallest positive normalized floating-point number,
- the largest floating-point number,
- the number of binary digits in the significand (including the
implicit leading bit)

and the arithmetics supported are

- bfloat16,
- IEEE half precision (fp16),
- IEEE single precision (fp32),
- IEEE double precision (fp64),
- IEEE quadruple precision (fp128).

The code was developed in MATLAB R2018b and works with versions at least
back to R2016b.

Zitieren als

Nick Higham (2024). float_params (https://github.com/higham/float_params), GitHub. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Numeric Types finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert: float_params2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versionen, die den GitHub-Standardzweig verwenden, können nicht heruntergeladen werden

Version Veröffentlicht Versionshinweise
1.0.0

Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.