Hello!
On point 2. long round(double a), its giving examples with Math.random(.6) and Math.random(-.6) shouldn't it be Math.round(.6) and Math.round(-.6) ?
Thanks!
[HD-OCP17/21-Fundamentals Pg 0, Sec. 6.6.0 - use-java-lang-math-class]
Moderator: admin
-
- Posts: 35
- Joined: Mon Sep 23, 2024 4:49 pm
- Contact:
-
- Posts: 35
- Joined: Mon Sep 23, 2024 4:49 pm
- Contact:
Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 6.6.0 - use-java-lang-math-class]
And on point 3. double floor (double a) the e.g is saying Math.floor(0.5) returns -1.0 its actually Math.floor(-0.5).
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 6.6.0 - use-java-lang-math-class]
Right on both. Should be fixed.
Thank you for your feedback!
Thank you for your feedback!
-
- Posts: 35
- Joined: Mon Sep 23, 2024 4:49 pm
- Contact:
Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 6.6.0 - use-java-lang-math-class]
No problem! Glad that I could help 

Who is online
Users browsing this forum: No registered users and 12 guests