Introduction to Programming with raptor


Built-in operators and functions of RAPTOR



Download 398.84 Kb.
Page9/11
Date31.07.2021
Size398.84 Kb.
#57126
1   2   3   4   5   6   7   8   9   10   11
introduction to programming with raptor

Built-in operators and functions of RAPTOR

  • Basic math: +, -, *, /, ^, **, rem, mod, sqrt, log, abs, ceiling, floor
  • Trigonometry: sin, cos, tan, cot, arcsin, arcos, arctan, arccot
  • Miscellaneous:random, Length_of

Assignment Statement/Symbol

  • The result of evaluating an expression in an assignment statement:
    • A single number.
    • A single string of text.

Assignment Statement/Symbol

  • You can also perform simple text manipulation by using a plus sign (+) to join two or more strings of text into a single string.
  • You can also join numerical values with strings to create a single string.
    • Full_name ← "Joe " + "Alexander " + "Smith"
    • Answer ← "The average is " + (Total / Number)

Download 398.84 Kb.

Share with your friends:
1   2   3   4   5   6   7   8   9   10   11




The database is protected by copyright ©ininet.org 2024
send message

    Main page