Float tab Syntax Buttons

The Float tab syntax buttons indicate all the ways you can add or use a float in an expression. Clicking on one of the buttons adds the indicated syntax (minus the question marks) to your expression. In the spaces left by the question marks, enter the appropriate values.

Float Syntax Descriptions

Syntax Button

Name

Type

Description

?F

literal

Enters an object of type float. See Floating-Point Literals..

For example:


 3.14159F

? + ?

addition

arithmetic

Adds two operands.

For example:

2E+12F

? - ?

subtraction

Subtracts the second operand from the first.

For example:
2E-12F

? * ?

multiplication

Multiplies two operands.

? / ?

division

Divides the first operand by the second.

? % ?

remainder

Returns the remainder of the first operand divided by the second.

? *= ?

multiply and assign

assignment

The operand on the left of the assignment statement (the first operand) can be any type of variable, including an array component or a public class attribute.

Multiplies the first operand by the second and assigns the result to the first operand.

? /= ?

divide and assign

Divides the first operand by the second and assigns the result to the first operand.

? %= ?

remainder and assign

Divides the first operand by the second operand and assigns the remainder to the first operand.

? += ?

add and assign

Adds the first operand to the second operand and assigns the result to the first operand.

? -= ?

subtract and assign

Subtracts the second operand from the first operand and assigns the result to the first operand.

+?

unary plus

unary

The positive value of the operand.

-?

unary minus

The negative value of the operand.

For example: -

100F

See the following for a summary descriptive list of all the operators you can use in the Java language:

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/opsummary.html