Concepts of Programming Languages (11th Edition)
11th Edition
ISBN: 9780133943023
Author: Robert W. Sebesta
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 6, Problem 2RQ
Program Plan Intro
Decimal data type:
- Some
programming languages gives a build-in decimal data type to represent non-repeating decimal fractions. - It could be implemented either a fixed-point number or floating-point number.
- The denominator would be set to a fixed power of ten in the fixed-point case.
- A variable exponent would denote the power of ten to which the mantissa of the number is multiplied in the floating-point case.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
What advantages and disadvantages come with employing decimal data types?
What are the benefits of using decimal data types?
How can you make the most of decimal data types, and what are their benefits and drawbacks?
Chapter 6 Solutions
Concepts of Programming Languages (11th Edition)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- What are the considerations to keep in mind when serializing and deserializing function objects?arrow_forwardWhat distinguishes data types that have a static length from those that have a dynamic length?arrow_forwardCompare and contrast the pros and cons of using C's pointers and arrays interchangeably.arrow_forward
- What design flaws are there in these points? The majority of programming languages only let one kind of variable per pointer.arrow_forwardWhat are the advantages and disadvantages of C's pointer-array compatibility?arrow_forwardWhat are the advantages and disadvantages of using ordinal data types that are user-defined? What are the advantages and disadvantages of employing an associative array?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning