This site requires JavaScript, please enable it in your browser!
Greenfoot back
cloudster101
cloudster101 wrote ...

2014/1/20

setLocation with doubles

cloudster101 cloudster101

2014/1/20

#
Hello, Does anybody know if it is possible to use the setLocation function with double,double instead of int,int. Thanks, this would help a lot, cloudster101
bourne bourne

2014/1/20

#
You could cast the doubles to ints (which gives the int portion of the value): setLocation((int)doubleX, (int)doubleY);
cloudster101 cloudster101

2014/1/20

#
Thanks that worked!
You need to login to post a reply.