Sha256: e4a82b788c2cf4441f15d699896c6f202364a3b7eb5862dc35b6300a7997beb0

Contents?: true

Size: 333 Bytes

Versions: 10

Compression:

Stored size: 333 Bytes

Contents

(de math (A B)
   (prinl "Add      " (+ A B))
   (prinl "Subtract " (- A B))
   (prinl "Multiply " (* A B))
   (prinl "Divide   " (/ A B))        # Trucates towards zero
   (prinl "Div/rnd  " (*/ A B))       # Rounds to next integer
   (prinl "Modulus  " (% A B))        # Sign of the first operand
   (prinl "Power    " (** A B)) )

Version data entries

10 entries across 7 versions & 1 rubygems

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