পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Monday, February 6, 2017

Rexx - Operators

An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations.
Rexx has various types of operators which are also explained in detail as follows −

  • Arithmetic operators
  • Relational operators
  • Logical operators
  • Bitwise operators

Arithmetic Operators

The Rexx language supports the normal Arithmetic Operators as any the language. Following are the Arithmetic Operators available in Rexx.
Show Example
Operator Description Example
+ Addition of two operands 1 + 2 will give 3
Subtracts second operand from the first 1 - 2 will give -1
Multiplication of both operands 2 ∗ 2 will give 4
/ Division of numerator by denominator 2 / 2 will give 1
// Remainder of dividing the first number by the second 3 // 2 will give 1
% The div component will perform the division and return the integer component. 3 % 2 will give 1

Relational Operators

Relational Operators allow of the comparison of objects. Following are the relational operators available in Rexx. In Rexx the true value is denoted by 1 and the false value is denoted by 0.
Show Example
Operator Description Example
== Tests the equality between two objects 2 = 2 will give 1
< Checks to see if the left object is less than the right operand. 2 < 3 will give 1
=< Checks to see if the left object is less than or equal to the right operand. 2 =< 3 will give 1
> Checks to see if the left object is greater than the right operand. 3 > 2 will give 1
>= Checks to see if the left object is greater than or equal to the right operand. 3 > 2 will give 1

Logical Operators

Logical Operators are used to evaluate Boolean expressions. Following are the logical operators available in Rexx.
Show Example
Operator Description Example
& This is the logical “and” operator 1 or 1 will give 1
| This is the logical “or” operator 1 or 0 will give 1
\ This is the logical “not” operator \0 will give 1
&& This is the logical exclusive “or” operator 1 && 0 will give 1

Bitwise Operators

Groovy provides four bitwise operators. Below are the bitwise operators available in Groovy
Show Example
Operator Description
bitand This is the bitwise “and” operator
bitor This is the bitwise “or” operator
bitxor This is the bitwise “xor” or Exclusive or operator

Operator Precedence

The following table shows the Operator Precedence for the Rexx operators in order of descending priority of their precedence.
Operators Precedence
Prefix operators + - \
Addition and subtraction + -
Comparison operators = == > < >= <=
Logical AND &
Logical OR |
EXCLUSIVE OR &&

No comments:

Post a Comment