Java ME modulo method ??

9

900390d

Easy question, is there an equivalent for the % or modulo method for
integers in the CLDC API? and if so, what is it?

Thanks in advance,
Scott
 
D

Darryl L. Pierce

Easy question, is there an equivalent for the % or modulo method for
integers in the CLDC API? and if so, what is it?

Use %. You can do integer math, just not floating point math, with the CLDC
1.0. CLDC 1.1 re-introduces floating points.

--
/**
* @author Darryl L. Pierce <[email protected]>
* @see The J2ME FAQ <http://mypage.org/mcpierce/j2mefaq.html>
* @quote "What do you care what others think, Mr. Feynman?"
* @geek echo '$_ = "Jvtu bopuifs Pfsm ibdlfs."; y/a-z/za-y/; print' |
perl
*/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top