Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the output ? Math.floor(-2.1)
a)2
b)-2
c)-3.0
d)0

Answer Posted / amarnath88888

Math.floor(x) function will return the nearest integer which
is less than the passed value x.

Since -3.0 < -2.1,
-3.0 is the nearest smallest integer.

so answer is c)-3.0

Is This Answer Correct ?    28 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of arraylist in java?

972


What is skeleton and stub? What is the purpose of those?

1024


What is the driver class?

963


What is ordered map in java?

946


What are variable arguments or varargs?

957


What is a boolean flag in java?

954


What is meant by structural programming?

965


What is meant by attribute?

1027


What is anagram number?

881


What is a parameter in java?

950


What is application system?

885


Can we call thread start () twice?

908


What is serialization in java?

1005


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

1024


Is java a compiler?

916