Page 1 of 1

[HD-OCP17/21-Fundamentals Pg 0, Sec. 6.6.0 - use-java-lang-math-class]

Posted: Mon Nov 04, 2024 1:44 pm
by joaoclopes
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!

Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 6.6.0 - use-java-lang-math-class]

Posted: Mon Nov 04, 2024 1:48 pm
by joaoclopes
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).

Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 6.6.0 - use-java-lang-math-class]

Posted: Mon Nov 04, 2024 8:31 pm
by admin
Right on both. Should be fixed.
Thank you for your feedback!

Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 6.6.0 - use-java-lang-math-class]

Posted: Tue Nov 05, 2024 7:25 am
by joaoclopes
No problem! Glad that I could help :)