You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
Hello guys! I want you to help me with something. I need to use the pow() method which can only be used with double data type. But I also need to use the result in a mod operation (%) which is only defined for int data type. So there must be a way to convert doubles to integers. Do you know how? thanks
Try looking at Double.intValue() and Integer.doubleValue(). They should give you what you're looking for.
Don.
__________________
Don MacVittie F5 Networks - To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.