answersLogoWhite

0


Best Answer

Very well YES

public class ModTest {

/**

* @param args

*/

public static void main(String[] args) {

System.out.println(10.5%2);

}

}

Output of the above program is: 0.5

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can the remainder or modulus operator be used with floating point operands?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

The modulus operator can be used only with integer operands?

True


The modulus operator percent can be used only with integer operands?

True


Which operator in 'c' takes only integer operands?

modulus (%) and shift (<<, >>) for examples.


What The modulus operator percent can be used only with integer operands is true or false?

true


How do you find the remainder of a division on python?

You use the modulus operator: % example: 7 % 2 will output a remainder of 1.


What does the percent mean in Java?

The percent sign in Java is the modulus operator. Modulus is used to find the remainder from a division For example if you did int x = 10 % 6; x would be equal to 4. 10 divided by 6 has a remainder of 4. The modulus operator can be used to determine whether a number is divisible by another among other things.


What is the difference between division and modulus operator?

Divison is a divison of two integers and result is stored in some where. where as Modulus is remainder is stored in some where. EX:DIVISION 45/4=11 MODULUS 45%4=1


What is mean by modulus?

A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.A modulus is the remainder after a number has been divided into another. 3 divides into 10 with a remainder of 1. So 1 is the modulus of 10 divided by 3.


State whether each what is TRUE or FALSE 1. All variables must be declared before they are used. 2. The modulus operator can be used only with integer operands.?

Both statements are true.


What operator performs division but instead of returning the quotient it returns the remainder?

Modulus page 46 Programming Logic and Design by Tony Gladdis


What is modulus function?

It is an binary arithmetic operator which returns the remainder of division operation. It can used in both floating-point values and integer values. opLeft % opRight where, opLeft is the left operand and opRight is the right operand. This expression is equivalent to the expression opLeft - ((int) (opLeft / opRight) * opRight)


What does the modulus operator in Java do?

It is an binary arithmetic operator which returns the remainder of division operation. It can used in both floating-point values and integer values. opLeft % opRight where, opLeft is the left operand and opRight is the right operand. This expression is equivalent to the expression opLeft - ((int) (opLeft / opRight) * opRight)