Sha256: 1f5ccd193885a85ccb6de1fc8fb54eb75eed41b7f7ca7050d2b2cebfc1bc5cdf

Contents?: true

Size: 536 Bytes

Versions: 10

Compression:

Stored size: 536 Bytes

Contents

The quotient rounds towards 0 if both inputs are integers or towards negative infinity if either input is floating point. The sign of the remainder is always the same as the sign of the first parameter (dividend).
Gui, Add, Edit, va, 5
Gui, Add, Edit, vb, -3
Gui, Add, Button, Default, Compute
Gui, Show
Return

ButtonCompute:
  Gui, Submit
  MsgBox,%
  (Join`s"`n"
   a "+" b " = " a+b
   a "-" b " = " a-b
   a "*" b " = " a*b
   a "//" b " = " a//b " remainder " Mod(a,b)
   a "**" b " = " a**b
  )
; fallthrough
GuiClose:
  ExitApp

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/arithmetic.integer/autohotkey.txt
zettacode-0.1.6 files.zettacode/arithmetic.integer/autohotkey.txt
zettacode-0.1.6 files.zettacode2/arithmetic.integer/autohotkey.txt
zettacode-0.1.5 files.zettacode/arithmetic.integer/autohotkey.txt
zettacode-0.1.5 files.zettacode2/arithmetic.integer/autohotkey.txt
zettacode-0.1.4 files.zettacode/arithmetic.integer/autohotkey.txt
zettacode-0.1.4 files.zettacode2/arithmetic.integer/autohotkey.txt
zettacode-0.1.3 files.zettacode/arithmetic.integer/autohotkey.txt
zettacode-0.1.2 files.zettacode/arithmetic.integer/autohotkey.txt
zettacode-0.1.1 zettacode.files/arithmetic.integer/autohotkey.txt