ISO/IEC 60559:2020
(Main)Information technology — Microprocessor Systems — Floating-Point arithmetic
Information technology — Microprocessor Systems — Floating-Point arithmetic
This standard specifies interchange and arithmetic formats and methods for binary and decimal floating-point arithmetic in computer programming environments. This standard specifies exception conditions and their default handling. An implementation of a floating-point system conforming to this standard may be realized entirely in software, entirely in hardware, or in any combination of software and hardware. For operations specified in the normative part of this standard, numerical results and exceptions are uniquely determined by the values of the input data, sequence of operations, and destination formats, all under user control.
Technologies de l'information — Systèmes de microprocesseurs — Arithmétique flottante
General Information
Relations
Standards Content (Sample)
ISO/IEC 60559
Edition 2.0 2020-05
™
IEEE Std 754
INTERNATIONAL
STANDARD
Floating-point arithmetic
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
ISO, IEC or IEEE at the respective address given below.
ISO copyright office IEC Central Office Institute of Electrical and Electronics Engineers, Inc.
Case postale 56 3, rue de Varembé 3 Park Avenue
CH-1211 Geneva 20 CH-1211 Geneva 20 New York, NY 10016-5997
Switzerland Switzerland United States of America
Tel.: +41 22 749 01 11 Tel.: +41 22 919 02 11 stds.info@ieee.org
copyright@iso.org info@iec.ch www.ieee.org
www.iso.org www.iec.ch
About the IEC
The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes
International Standards for all electrical, electronic and related technologies.
About IEC publications
The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the
latest edition, a corrigendum or an amendment might have been published.
IEC publications search - webstore.iec.ch/advsearchform Electropedia - www.electropedia.org
The advanced search enables to find IEC publications by a The world's leading online dictionary on electrotechnology,
variety of criteria (reference number, text, technical containing more than 22 000 terminological entries in English
committee,…). It also gives information on projects, replaced and French, with equivalent terms in 16 additional languages.
and withdrawn publications. Also known as the International Electrotechnical Vocabulary
(IEV) online.
IEC Just Published - webstore.iec.ch/justpublished
Stay up to date on all new IEC publications. Just Published IEC Glossary - std.iec.ch/glossary
details all new publications released. Available online and 67 000 electrotechnical terminology entries in English and
once a month by email. French extracted from the Terms and definitions clause of
IEC publications issued between 2002 and 2015. Some
IEC Customer Service Centre - webstore.iec.ch/csc entries have been collected from earlier publications of IEC
If you wish to give us your feedback on this publication or TC 37, 77, 86 and CISPR.
need further assistance, please contact the Customer Service
Centre: sales@iec.ch.
ISO/IEC 60559
Edition 2.0 2020-05
IEEE Std 754™
INTERNATIONAL
STANDARD
Floating-point arithmetic
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
ICS 35.200 ISBN 978-2-8322-8178-9
IEEE Std 754-2019
– 4 –
IEEE Std 754-2019
IEEE Standard for Floating-Point Arithmetic
Contents
1. Overview.11
1.1 Scope.11
1.2 Purpose.11
1.3 Inclusions.11
1.4 Exclusions.11
1.5 Programming environment considerations.12
1.6 Word usage.12
2. Definitions, abbreviations, and acronyms.13
2.1 Definitions.13
2.2 Abbreviations and acronyms.15
3. Floating-point formats.16
3.1 Overview.16
3.2 Specification levels.17
3.3 Sets of floating-point data.17
3.4 Binary interchange format encodings.19
3.5 Decimal interchange format encodings.20
3.6 Interchange format parameters.23
3.7 Extended and extendable precisions.25
4. Attributes and rounding.26
4.1 Attribute specification.26
4.2 Dynamic modes for attributes.26
4.3 Rounding-direction attributes.27
5. Operations.29
5.1 Overview.29
5.2 Decimal exponent calculation.30
5.3 Homogeneous general-computational operations.31
5.4 formatOf general-computational operations.33
5.5 Quiet-computational operations.35
5.6 Signaling-computational operations.37
5.7 Non-computational operations.37
5.8 Details of conversions from floating-point to integer formats.39
5.9 Details of operations to round a floating-point datum to integral value.41
5.10 Details of totalOrder predicate.42
5.11 Details of comparison predicates.43
5.12 Details of conversion between floating-point data and external character sequences.44
6. Infinity, NaNs, and sign bit.48
6.1 Infinity arithmetic.48
6.2 Operations with NaNs.48
6.3 The sign bit.50
7. Exceptions and default exception handling.51
7.1 Overview: exceptions and flags.51
7.2 Invalid operation.52
7.3 Division by zero.53
7.4 Overflow.53
7.5 Underflow.53
7.6 Inexact.54
8. Alternate exception handling attributes.55
8.1 Overview.55
8.2 Resuming alternate exception handling attributes.55
8.3 Immediate and delayed alternate exception handling attributes.56
IEEE Std 754-2019 – 5 –
IEEE Std 754-2019
IEEE Standard for Floating-Point Arithmetic
9. Recommended operations.58
9.1 Conforming language- and implementation-defined operations.58
9.2 Additional mathematical operations.58
9.3 Dynamic mode operations.65
9.4 Reduction operations.66
9.5 Augmented arithmetic operations.68
9.6 Minimum and maximum operations.69
9.7 NaN payload operations.71
10. Expression evaluation.72
10.1 Expression evaluation rules.72
10.2 Assignments, parameters, and function values.72
10.3 preferredWidth attributes for expression evaluation.73
10.4 Literal meaning and value-changing optimizations.74
11. Reproducible floating-point results.75
Annex A (informative) Bibliography.77
Annex B (informative) Program debugging support.79
Annex C (informative) List of operations.81
Annex D (informative) IEEE list of participants.83
IEEE Std 754-2019
– 6 –
FLOATING-POINT ARITHMETIC
FOREWORD
1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising
all national electrotechnical committees (IEC National Committees). The object of IEC is to promote
international co-operation on all questions concerning standardization in the electrical and electronic fields. To
this end and in addition to other activities, IEC publishes International Standards, Technical Specifications,
Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC
Publication(s)”). Their preparation is entrusted to technical committees; any IEC National Committee interested
in the subject dealt with may participate in this preparatory work. International, governmental and non-
governmental organizations liaising with the IEC also participate in this preparation.
IEEE Standards documents are developed within IEEE Societies and Standards Coordinating Committees of the
IEEE Standards Association (IEEE-SA) Standards Board. IEEE develops its standards through a consensus
development process, which brings together volunteers representing varied viewpoints and interests to achieve
the final product. Volunteers are not necessarily members of IEEE and serve without compensation. While IEEE
administers the process and establishes rules to promote fairness in the consensus development process, IEEE
does not independently evaluate, test, or verify the accuracy of any of the information contained in its
standards. Use of
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.