Gambas/Arithmetic

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Basic Arithmetic Operations[edit | edit source]

It's similar to other programming languages.

Use the Float datatype when you calculate values!

  Dim x As Float
  Dim y As Float 

  x = 0.32
  y = x - (0.32 - 0.32 ^ 3 / (2 * 3))