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

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.


Issue Date:
2008
Publication Type:
Journal Article
DOI and Other Identifiers:
pr0038 (Other)
PURL Identifier:
http://purl.umn.edu/122590
Published in:
Stata Journal, Volume 08, Number 2
Page range:
255-268
Total Pages:
14

Record appears in:



 Record created 2017-04-01, last modified 2017-08-26

Fulltext:
Download fulltext
PDF

Rate this document:

Rate this document:
1
2
3
 
(Not yet reviewed)