Trending ▼   ResFinder  

ICSE − Q & A

ICSE
Indian Certificate of Secondary Education (ICSE), New Delhi
+Fave Message

Ask a Question

Answer a Question!

ResFinder - Thousands of Practice Papers

Is it compulsory to use scanner class cuz our school said no to buffer clss
asked by Tubhyam Mehta (tirth7683) 5 years ago
4

+ 1 more questions by tirth7683  

This is for those struggling for Math.rint(), hope this helps..



How Math.rint() works:

EVEN NUMBER CASES:
(1) Math.rint(4.4) = 4.0		
[This is basically just like math.round it will round to lowest]

(2) Math.rint(4.5) = 4.0		
[Since, the number main decimal number (4) is an even number, instead of rounding of to higher number like 5.0 from decimal point 0.5 it will round of to 4.0, unlike .round function] [For such no. if u want to round it to 5.0, the decimal shud be 0.6 or greater, like the case below] 

ODD NUMBER CASES:
(3) Math.rint(4.6/4.7 or greater) = 5.0


Now for the bottom 3 examples, the main decimal number (3) is an odd no, so it will obey standard rules of rounding, i.e. rounding will start from the 0.5 itself]  Exactly like Math.round() function.. except round returns int type..

(4) Math.rint(3.4) = 3.0 

(5) Math.rint(3.5) = 4.0

(6) Math.rint(3.6/3.7 or greater) = 4.0




*Negative numbers are the same.. just ignore the minus sign and follow above procedure, then put the minus sign back in the answer
asked by Sahaj Shah (eternityseeker) 5 years ago
4
Difference between boxing and unboxing???? 
(Not given in my textbook at all)
asked by Harjas Bajaj (jammy229) 5 years ago
1
Bros why does a pure function need to return a value compulsorily?
I can just have a pure function to print the values too na? 😎😈
asked by Aquaman- King of the Seven Seas (shauns) 5 years ago
1
As i am a lot much helpful so here i go

Super 100 program question may come from here in boards and it is available on res paper practice hard

https://www.respaper.com/ved0_ssk_respaper_pongala/9522-pdf.html
asked by Annhaliator (laxyone) 5 years ago
3
Question in the response below ⬇
asked by Ayush Agarwal (qwertyuiop12345678901234567890) 5 years ago
3
https://www.respaper.com/aryanjain200376/5965-zip.html Q3 d 9 (ii)
asked by √ (godblessme20) 5 years ago
3
THROWS keyword only declares that such an exception occurs but doesnot handle it right
asked by Sankhya Gowda (taankkkkk) 5 years ago
2
Guyzz,I am confused in math.rint().
In textbook they gave something and execution on the system results in something else.
Please explain.
asked by SId m (siddhant03) 5 years ago
3
What are temporary instances of a class?
asked by Anvaya Juvekar (anvaya) 5 years ago
2

<< Prev

    Page 425    

Next Page >>

ICSE chat

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us