1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Andreyy89
1 year ago
6

determine the integer floor of the sum of two floating point numbers. the floor is the truncated float value, i.e. anything afte

r the decimal point is dropped.
Mathematics
1 answer:
ladessa [460]1 year ago
8 0

return(int(a+b)) is the way to determine the integer floor of the sum of two floating point numbers.

Here is an example program:

int main(void){

double a,b,c;

a=1.001;

b=2.243;

c=a+b;

return(int(c));

}

where, a and b are floating points we need addition of that as an integer which means removing the decimal part.

hence, we use return(int(c)), it is also called as parsing integer.

What is parseInt()?

The function parseInt(int I produces an integer when given a textual representation of a number that is either decimal, binary, octal, or hexadecimal (radix equals 10, 2, 8, or 16 correspondingly).

Example in java program:

public class Test {

  public static void main(String args[]) {

     int x =Integer.parseInt("9");

     double c = Double.parseDouble("5");

     int b = Integer.parseInt("444",16);

     System.out.println(x);

     System.out.println(c);

     System.out.println(b);

  }

}

To know more about floating check the below link:

https://brainly.in/question/640461

#SPJ4

You might be interested in
does somebody knows how to do this one?
vlada-n [284]

Answer:

Step-by-step explanation:

To find the area subtract the area of the semicircle from the area of the rectangle.

Although the line isn’t there, if you imagine there is one, then you will see that you form a rectangle which is the same line as the semicircle’s diameter.

The area of rectangle is:

⇒ A = lw

⇒ A = (14)(8)

⇒ A = 112cm^{2}

The area of the semicircle;

⇒ A = \frac{1}{2}\pi r^{2}

⇒ A = \frac{1}{2}\pi (7)^{2}

*Note here that the radius is half the diameter, so it is 7cm, not 14cm

⇒ A = 76.97cm^{2}

Finally subtract the two areas;

⇒ A = 112 - 76.97

⇒ A = 35.03cm^{2}

6 0
2 years ago
What is the median of the data set 10,7,9,9,4, 6?
lilavasa [31]

Answer:

8

Step-by-step explanation:

The median is the middle of the numbers in a given data set.

To find the median, line up all of the numbers from greatest to least.

4, 6, 7, 9, 9, 10

Now, find the middle of the numbers. Since there is an even number of numbers in the data set, find the two middle numbers.

4, 6, 7, 9, 9, 10

Next, find the average of these two numbers. (To do this, add the numbers and divide that sum by 2.)

7 + 9 = 16

16/2 = 8

Therefore, the median is 8.

4 0
3 years ago
A group of 400 town residents is asked to attend a town hall meeting. Of the 400 residents asked to attend 36 were able to atten
zzz [600]
We have to find the percentage ratio of two numbers. It is \frac{36}{400}*100 = 9%. And the correct answer is D). 

Alternatively, by setting up a ratio, we can write that If
                    400_____100%
                      36_____x
And x=9% 
                   
5 0
4 years ago
Write the general form of equation (x-8)^2 +(y+2)^2 =1
SpyIntel [72]
<span>(x-h)^2 + (y-k)^2 = r^2
</span><span>where r is the radius of the circle, </span>
<span>and h,k are the coordinates of its center;

( x - 8 )^2 + ( y - ( - 2 ) )^2 = 1 ^2 ;
r = 1 ;
h = 8 ; k = -  2.</span>
5 0
3 years ago
What’s the domain of the function y=-2(2)x+2?
Vlad1618 [11]

Answer:

Domain: -infinity < x < infinity

Step-by-step explanation:

This function has no undefined points or constraints.

8 0
3 years ago
Other questions:
  • Question about checks?
    12·1 answer
  • You need to earn more than $75. You earn $6.00 for each hour you work. Write and solve an
    8·1 answer
  • A 2-parent family with 3 children lives in McAllen. The family is saving for retirement, college, and emergencies, and the paren
    10·1 answer
  • on monday sheila sold 20 apples, on tuesday she sold 12 apples, on wednesday she sold 20 apples, and on thursday she sold 28 app
    12·2 answers
  • Please show all work cuase I don’t understand thank you
    9·1 answer
  • A bicycle company has designed and built a new model of sports bicycle. They have determined that the profit for the sale of the
    11·1 answer
  • Runner a averages 5 mph and run it B rat averages 6 mph these rates how much longer does it take runner A then runner be to run
    12·1 answer
  • Can someone help with #6 and #7 PLEASE!!!
    10·1 answer
  • How long does it take to travel a distance of 672 km at a speed of 96 kph?
    11·2 answers
  • Quality control finds on average that 0.045% of the items from a certain factory are defective. One month, 4500 items are checke
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!