answersLogoWhite

0


Best Answer

The advantages of integer arithmetic over floating point arithmetic is the absence of rounding errors. Rounding errors are an intrinsic aspect of floating point arithmetic, with the result that two or more floating point values cannot be compared for equality or inequality (or with other relational operators), as the exact same original value may be presented slightly differently by two or more floating point variables. Integer arithmetic does not show this symptom, and allows for simple and reliable comparison of numbers.

However, the disadvantage of integer arithmetic is the limited value range. While scaled arithmetic (also known as fixed point arithmetic) allows for integer-based computation with a finite number of decimals, the total value range of a floating point variable is much larger.

For example, a signed 32-bit integer variable can take values in the range -231..+231-1 (-2147483648..+2147483647), an IEEE 754 single precision floating point variable covers a value range of +/- 3.4028234 * 1038 in the same 32 bits.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are advantages and disadvantages of Integer programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the disadvantages of boo programming language?

advantages of boo


What are the disadvantages and advantages of Planning Programming Budgeting System?

What are the disadvantages of ppbs


What are the advantages and disadvantages of algorithm?

Advantages of algorithms are that they are easy to debug, there is a clear set of instructions that can be followed, and they are independent of programming language. Disadvantages of algorithms are that they are time consuming and complicated to create.


Advantages and disadvantages of using flow charts instead of text-based programming?

There are quite a few different advantages and disadvantages of using flow charts instead of text-based programming. One pro is that this is a visual aid that helps explain your ideas.


What is integer programming?

Integer programming is a special kind of an optimising problem where the solution must be an integer.


What are the advantages and disadvantages in using the radio?

Television advantages: wide service coverage, better quality TV, service recovery during breakdown, wide programming selections. Television disadvantages: Additional cost for special programming packages, short valuable add-on. Radio advantages: ...ask someone else...


Distinguish between integer programming problem and linear programming problem?

Integer programming is a subset of linear programming where the feasible region is reduced to only the integer values that lie within it.


What are advantages and disadvantages of oop 'object oriented programming?

The advantages are Data Encapsulation Data Hiding Easy to maintain the code Reuseability of classes And disadvantages are wastage of time in case of small projects or codes


What are the advantages and disadvantages of event driven programming?

Advantages: Ease of development, Flexibility, Simplicity and suitable for graphical interfaces. Disadvantages: Complex, Hard to control, Time consuming to get event loops and event handlers running.


What is the difference between linear and integer programming?

Integer programming is a method of mathematical programming that restricts some or all of the variables to integers. A subset of Integer programming is Linear programming. This is a form of mathematical programming which seeks to find the best outcome in such a way that the requirements are linear relationships.


How do you find the answer to an integer problem?

It depends on the problem: you may have to use integer programming rather than linear programming.


advantages and disadvantages of equity?

Advantages and Disadvantages of equity