Sub8 Function

Purpose

Subtracts two Large integer expressions.

Syntax

large = i Sub8 j( operator)

large = Sub8(i, j [, m, …])( function)

i, j, m: = Large integer) expression

Description

Sub8 returns the difference between two Large integer expressions i and j. The values i and j are converted to 64-bit integer values before the function is applied.

Note There is no 64-bit version of the Sub command to add an expression to a variable, because Sub is type independent and works with Large types as well.

Example

OpenW # 1

Print Sub8(5 ^ 3, 4 * 20 + 3)// prints 42

Remarks

The Add8(), Sub8(), Mul8() and Div8() functions can be mixed freely with each other. For example

l% = Sub8(5 ^ 3, 4 * 20 + 3)

// or

l% = Sub8(5 ^ 3, Add8(Mul8(4, 20), 3))

See Also

Add8, Sub8, Mul8, Div8, Mod8, +, -, *, /, \, ++, --, +=, -=, /= , *=, Operator Hierarchy

{Created by Sjouke Hamstra; Last updated: 23/10/2014 by James Gaite}