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
Using the slope formula, find the slope of the line through the given points.<br> (6,3) and (8,9)
Charra [1.4K]

Answer:

no noooooooooooooooooooooooooooooooooooooooooooooooooooooo

Step-by-step explanation:

8 0
3 years ago
Please help me expand theses and then help me factorise these brackets
melisa1 [442]

Answer:

-9xy+16x

Step-by-step explanation:

x(y-2) +3x(6-y) -7xy

Distribute

xy -2x +18x-3xy -7xy

Combine like terms

-9xy+16x

3 0
3 years ago
Read 2 more answers
I know this question is easy, but I don’t really know how to do it? Help? If possible put a quick explanation, it’s fine if not!
lorasvet [3.4K]

Answer:

She left $10.62 the total was $58.87

Hope this helps :)

3 0
3 years ago
Divide the following quantities in the following ratios £100 1:3
liubo4ka [24]
The answer is 25:75….
6 0
3 years ago
COULD I GET GET SOME HELP PLZ? REWARD BRAINLIEST
Svetlanka [38]

Answer:

1. D) -4/3 or 4/3

2. A) -6 or 8

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • Danica wants to arrange her model cars in rows with exactly 6 cars in each row. She now has 23 model cars. What is the smallest
    5·2 answers
  • One spring, the temperature rose from -5 degrees Celsius to 12 degrees Celsius in 24 hours. How much did the temperature rise in
    10·1 answer
  • Ok serous question this has nothing to do with my other questions would you guys care if I committed ya know
    10·2 answers
  • The math club is fast becoming one of the most popular clubs on campus because of the fabulous activities it sponsors annually f
    9·1 answer
  • Solve.
    9·1 answer
  • Insert two arithmetic means between -2 and 13. <br> A. 1, 10<br> B. 3, 8<br> C. 2, 9<br> D. 4, 7
    11·1 answer
  • Multiplying polynomials: simplify <br> (4a+2)(6a^2-a+2)
    11·1 answer
  • Can someone help me out? ​
    6·1 answer
  • I NEED SOMEONE TO HELP ME WITH MY TEST ITS ONLY 8 QUESTIONS. PLEASE PLEASE HELP HELP
    7·2 answers
  • The tensile strength of a wrought iron bar varies directly as the square of its diameter. A bar of diameter 2 inches can withsta
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!