Mod - Operator Of Language VBScript - Promotic

Promotic
Login logon
  • PRODUCTS
    • Products
    • What is PROMOTIC
    • PROMOTIC News
    • Documentation PROMOTIC
    • Freeware PROMOTIC
    • PROMOTIC school version
    • Applications development
    • Application references
  • DOCUMENTATION
    • PROMOTIC videos on YouTube
    • Documentation
  • LICENCES
    • Price list
    • Licences order
    • Business conditions
  • Download
    • Download
    • PROMOTIC 9.0
    • PROMOTIC 8.3
    • PROMOTIC 8.2
    • PROMOTIC 8.1
    • PROMOTIC 8.0
    • PROMOTIC 7.5
    • All stable versions
    • PmNetKey
    • Info materials
  • Services
    • Custom presentations
    • Trainings
    • For schools
    • Applications development
    • Application references
  • CONTACT
    • Contact form
    • Contacts
    • Distributors
    • System integrators
  • ABOUT US
    • MICROSYS - Company profile
    • News
    • Rewards and media
    • Partners
    • GDPR and Cookies
  • SOCIAL
    • Facebook
    • YouTube
    • LinkedIn
Mod - operator of language VBScript
Description:
Divide two numbers and return the remainder ("modulo" operator).
Syntax:
result = number1 Mod number2
Note:
The modulus, or remainder, operator divides number1 by number2 (rounding floating-point numbers to integers) and returns only the remainder as result.
See also:
- Subtraction (-) - Exponentiation (^) - Multiplication (*) - Division (/) - Integer division (\) - Operator precedence
Example:
VBScriptSelect and copy to clipboard Dim x x = 12 Mod 10   ' x is 2 (12=1*10+2) x = 19 Mod 6.9   ' x is 5 (19=2*7+5) (the 6.9 value is rounded to 7) PROMOTIC 9.0.34 SCADA system documentation MICROSYS, spol. s r.o.Send page remark Contact responsible person Navigation:   - PROMOTIC SCADA/HMI system - Documentation contents - Scripting Languages - VBScript - Operators VBScript   - Addition (+) - And - Assignment (=) - Concatenation (&) - Division (/) - Eqv - Exponentiation (^) - Imp - Integer division (\) - Is - Mod     - Multiplication (*) - Not - Or - Operator precedence - Subtraction (-) - Xor © MICROSYS, spol. s r.o.Update cookies preferences

Từ khóa » Visual Basic Mod Operator