We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There a few mismatches between the doc and the implementation: https://github.com/codenameone/CodenameOne/blob/master/Ports/CLDC11/src/java/lang/Math.java#L216
floor
double
0
+0.0
A side question: In my CLDC11.jar, there's long instead of int. How comes?
long
int
The text was updated successfully, but these errors were encountered:
Fixed another typo in Math class javadocs. #2933
c07647b
The result is surely not equivalent as floor returns double.
Notice the cast to int: {@code (int) Math.floor(f+0.5)}
{@code (int) Math.floor(f+0.5)}
L220: The result is 0 rather than +0.0. Repeated two more times.
I added a cast now: 720d9b6
L224: A typo in "infintiy". Repeated once.
Fixed c07647b
There are two round methods: public long round(double) and public int round(float)
public long round(double)
public int round(float)
Sorry, something went wrong.
shannah
No branches or pull requests
There a few mismatches between the doc and the implementation:
https://github.com/codenameone/CodenameOne/blob/master/Ports/CLDC11/src/java/lang/Math.java#L216
floor
returnsdouble
.0
rather than+0.0
. Repeated two more times.A side question: In my CLDC11.jar, there's
long
instead ofint
. How comes?The text was updated successfully, but these errors were encountered: