
Getting Started with V Programming
By :

During the development of any software program, it is crucial to crunch numbers at some point. It might involve performing basic math or comparing numbers. V allows you to do so by providing various operators that can be applied to primitive types.
The operators that can be applied on numeric data types are categorized as follows:
As we already learned about relational operators while learning about Boolean data types earlier in this chapter, we will take a look at the remaining arithmetic, bitwise, and shift operators and also understand how to work with these operators, with the example code using V.
You can perform basic arithmetic operations on numeric types in V, such as addition, subtraction, multiplication, division, and modulo. The following table indicates the basic arithmetic operators and describes what the...