You are not logged in.

#1 2015-06-10 10:38:16

User RankUser RankUser RankUser RankUser RankUser Rank
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129

Code Determines:

Which code determines the int value data closer to, but not greater than, a double value b?

Option A):
Int data = (int) Math.floor(b);
Option B):
Int data = (int) Math.min(b);
Option C):
Int data = (int) Math.ceil(b);
Option D):
Int data = (int) Math.abs(b);

Correct Answer is Option A):
Int data = (int) Math.floor(b);

You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-06-10 10:38:16

Ads By Google

Re: Code Determines:

Board footer