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

does java support pointers?

989


What is module in oop?

1010


What is the file extension for java?

1072


What does a boolean method return?

1230


What are the steps involved to create a bean?

1152


Which is faster set or list in java?

1029


What are the advantages of arraylist over arrays?

1092


Explain differences between collection api and stream api?

1178


What is the advantage of functional interface in java 8?

989


What is bubble sorting in java?

1040


What is the exact difference in between unicast and multicast object? Where we will use?

995


Differentiate between a constructor and a method? Can we mark constructors final?

1193


What is null object in java?

1013


What is the do while loop syntax?

1032


What are the parts of methodology?

972