Email:
Password:
Remember Me
Forgot your password?
Log in
New to Satt Academy?
Create an account
or
Log in with Google Account
Home
Ask Question?
Business Account
Exam
Exam List
Exam Result
Category
1-12 Class
Board Exam
Admission
Job Solution
Skill Development
Book Collection
Video Content
Blog Content
Question
Ask Question?
Current Affairs
All MCQ Question
All Written Question
Upload Question
General
Study Plan
Hand Note
Notice | News
Other
FAQ
Point
Package
Feedback
Home
Academy
Admission
Job Assistant
Current Affairs
Skill
Forum
Blog
Package
Sign In
Unauthenticate
Guest
example@gmail.com
Login
Description
Home
Edit Description
Back
Edit Description
Fill up the form and submit
Question
which of the following will produce an answer that is closest in value to a double , d. while not being greater than d?
(int) Math . min (d);
(int)Math. max(d);
(int)Math .abs (d);
(int)Math.Floor(d);
ANSWER : 4
Descrption
Description The method floor gives the largest integer that is less than or equal to the argument. Syntax This method has the following variants − double floor(double d) double floor(float f) Parameters Here is the detail of parameters − A double or float primitive data type. Return Value This method returns the largest integer that is less than or equal to the argument. Returned as a double. Example Live Demo public class Test { public static void main(String args[]) { double d = - 100.675; float f = - 90; System.out.println(Math.floor(d)); System.out.println(Math.floor(f)); System.out.println(Math.ceil(d)); System.out.println(Math.ceil(f)); } } This will produce the following result − Output - 101.0 - 90.0 - 100.0 - 90.0
Please, login first.
click here to login
Cancel
Login
©2024 SATT ACADEMY. All rights reserved.
Promotion