EconPapers    
Economics at your fingertips  
 

Mata Matters: Overflow, underflow and the IEEE floating-point format

Jean Marie Linhart ()
Additional contact information
Jean Marie Linhart: StataCorp

Stata Journal, 2008, vol. 8, issue 2, 255-268

Abstract: Mata is Stata’s matrix language. The Mata Matters column shows how Mata can be used interactively to solve problems and as a programming language to add new features to Stata. In this quarter’s column, we investigate underflow and overflow and then delve into the details of how floating-point numbers are stored in the IEEE 754 floating-point standard. We show how to test for overflow and underflow. We demonstrate how to use the %21x format to see underflow and the %16H, %16L, %8H, and %8L formats for displaying the byte content of doubles and floats.

Keywords: Mata; underflow; overflow; denormalized number; normalized num- ber; subnormal number; double precision; missing values; IEEE 754; format; binary; hexadecimal (search for similar items in EconPapers)
Date: 2008
References: View references in EconPapers View complete reference list from CitEc
Citations:

Downloads: (external link)
http://www.stata-journal.com/article.html?article=pr0038

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:8:y:2008:i:2:p:255-268

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-20
Handle: RePEc:tsj:stataj:v:8:y:2008:i:2:p:255-268