Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Info]Arithmetic Database

[Info]Arithmetic Database

Posts 1–3 of 3 · Page 1 of 1
Invidus
Invidus
[Info]Arithmetic Database
Hey guys, i came upon a particularly interesting part in my VB Reference and i'd thought i'd share it with you guys. This may be revision for some of you guys, but i'd like to help those that do not know. If you could, NextGen please place a reference of this in the Tutorials thread.

Arithmetic Expressions
Before you write a program to calculate numbers, you need to be familiar with Arithmetic expressions. These are very similar to the arithmetic operations that we do by hand or calculator. When you use a calculator, you punch specific keys such as a minus of plus sign to deduct or add numbers. Computers need to know these operators as well.

Arithmetic Operators
Like your calculator, computers need to know what type of arithmetic operations you would like to perform. You communicate your needs through symbols that a computer can understand. These symbols are called arithmetic operators. I will draw these operators in a table below. (Well i'll try )

XD i'll draw a table in paint.NET God you guys owe me took me so long to make it good . Take a look:



Precedence of Operations
We need to become familiar with the term precedence, or order of operations, for these operators. Precedence is the hierarchy or the priority that Visual Basic gives to these operators. Simply put, Visual Basic uses a guideline to perform arithmetic operations. This becomes important when more than one kind of arithmetic operator appears within one expression. Under the normal order of operation, these operators are treated as follows.

  1. Exponentiation
  2. Multiplication or division, depending on the order of their appearance from left to right
  3. Integer division
  4. Mod
  5. Addition or subtraction, depending on the order of their appearance from left to right.


This list tells visual basic to perform the exponentiation calculation first. An example will help us understand this concept better.

3+2*5

The result is 13, not 25. Why? If we follow the rules given above, the first operation will be 2*5, which is 10. The second operation will be 3+10, which becomes 13. Lets have a look at some more examples.

2*10^2+2

The result is 202. Here is how: the first operation is 10^2 because exponentiation has the highest priority of the operators in this arithmetic operation. The result of the first operation, which is 10^2, is 100. The second operation is 2*100 because multiplication has a higher priority than addition. The result of the second operation is 200. Now the third operation will take place, which is 200+2, because the addition has the lowest priority in this expression. Therefore, the result is 202. Occasionally we want to force a specific order of operation. Considering out first example, 3+2*5, let us say we really want 3+2 to be calculated first and then be multiplied by 5. Then we need to change the order of operation. In this case, the parentheses are used to give higher priority to an operation. And yeah if you don't know what parentheses are, they're brackets.

(3+2)*5

The result is 25. Therefore the operation in parentheses always has the highest priority in any arithmetic operation. Here is an example of a mod operator.

10 mod 8

The result is 2. Mod divides 10 by 8 and reports the remainder of the calculation.

Thanks for reading, and i hoped it helped!!!
#1 · 16y ago
Blubb1337
Blubb1337
Additional info to / & \

/ = common division

\ = division + rounding

5/2 = 2,5

5\2 = 3

This should also work

dim result as integer

5/2 = result

CInt(result)

never worked with it tho =/

thanks for sharing btw
#2 · 16y ago
Invidus
Invidus
Welcome, and thanks for that info!!
#3 · 16y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • [Info]Data Types | Database Pt 2By Invidus in Visual Basic Programming
    5Last post 16y ago
  • [Info] Chapter 7 - Database O.O [closed]By Lyoto Machida in Visual Basic Programming
    3Last post 15y ago
  • WarRock WPE Info...By RebornAce in WarRock - International Hacks
    7Last post 20y ago
  • warrock wpe packet infoBy kvmn8 in WarRock - International Hacks
    0Last post 20y ago
  • Server InfoBy Dave84311 in Puzzle Pirates Hacks & Cheats
    13Last post 20y ago

Tags for this Thread

None