Numeric

Numeric

mulUint64

available since: 1.0.0

multiply takes two numeric values of the type uint64 and multiplies them.

Example:

Query:
e.mulUint64(d.uint64(4503599627370495), d.uint64(2))
Result:
9007199254740990

mulUint8

available since: 1.0.0

multiply takes two numeric values of the type uint8 and multiplies them.

Example:

Query:
e.mulUint8(d.uint8(127), d.uint8(2))
Result:
254

addUint16

available since: 1.0.0

add takes two values of the type uint16 and adds them together.

Example:

Query:
e.addUint16(d.uint16(32768), d.uint16(32767))
Result:
65535

divFloat

available since: 1.0.0

divide takes two two numeric values of the type float and divides them.

Example:

Query:
e.divFloat(d.float(1), d.float(2))
Result:
0.5

toInt8

available since: 1.0.0

monadic numeric conversion function which returns the type in their name.

Example:

Query:
e.toInt8(d.float(127.5))
Result:
127

toInt16

available since: 1.0.0

monadic numeric conversion function which returns the type in their name.

Example:

Query:
e.toInt16(d.float(32767.5))
Result:
32767

ltUint16

available since: 1.0.0

Checks if the first value is less than the second

Example:

Query:
e.ltUint16(d.uint16(), d.uint16(65535))
Result:
true

toUint16

available since: 1.0.0

monadic numeric conversion function which returns the type in their name.

Example:

Query:
e.toUint16(d.float(32767.5))
Result:
32767

divInt8

available since: 1.0.0

divide takes two two numeric values of the type int8 and divides them.

Example:

Query:
e.divInt8(d.int8(127), d.int8(2))
Result:
63

gtUint32

available since: 1.0.0

Checks if the first value is greater than the second

Example:

Query:
e.gtUint32(d.uint32(), d.uint32(4294967295))

ltInt32

available since: 1.0.0

Checks if the first value is less than the second

Example:

Query:
e.ltInt32(d.int32(-2147483648), d.int32(2147483647))
Result:
true

addInt32

available since: 1.0.0

add takes two values of the type int32 and adds them together.

Example:

Query:
e.addInt32(d.int32(-2147483648), d.int32(2147483647))
Result:
-1

divUint16

available since: 1.0.0

divide takes two two numeric values of the type uint16 and divides them.

Example:

Query:
e.divUint16(d.uint16(65535), d.uint16(2))
Result:
32767

subUint8

available since: 1.0.0

subtract takes two numeric values of the type uint8 and subtracts the first from the second value.

Example:

Query:
e.subUint8(d.uint8(128), d.uint8(127))
Result:
1

addUint8

available since: 1.0.0

add takes two values of the type Uint8 and adds them together.

Example:

Query:
e.addUint8(d.uint8(128), d.uint8(127))
Result:
255

ltInt8

available since: 1.0.0

Checks if the first value is less than the second

Example:

Query:
e.ltInt8(d.int8(-128), d.int8(127))
Result:
true

addInt8

available since: 1.0.0

add takes two values of the type int8 and adds them together.

Example:

Query:
e.addInt8(d.int8(-128), d.int8(127))
Result:
-1

ltUint64

available since: 1.0.0

Checks if the first value is less than the second

Example:

Query:
e.ltUint64(d.uint64(), d.uint64(9007199254740991))
Result:
true

toInt64

available since: 1.0.0

monadic numeric conversion function which returns the type in their name.

Example:

Query:
e.toInt64(d.float(9007199254740990))
Result:
9007199254740990

ltUint32

available since: 1.0.0

Checks if the first value is less than the second

Example:

Query:
e.ltUint32(d.uint32(), d.uint32(4294967295))
Result:
true

gtInt16

available since: 1.0.0

Checks if the first value is greater than the second

Example:

Query:
e.gtInt16(d.int16(-32768), d.int16(32767))

divInt16

available since: 1.0.0

divide takes two two numeric values of the type int16 and divides them.

Example:

Query:
e.divInt16(d.int16(32767), d.int16(2))
Result:
16383

divUint64

available since: 1.0.0

divide takes two two numeric values of the type uint64 and divides them.

Example:

Query:
e.divUint64(d.uint64(9007199254740991), d.uint64(2))
Result:
4503599627370495

mulFloat

available since: 1.0.0

multiply takes two numeric values of the type float and multiplies them.

Example:

Query:
e.mulFloat(d.float(0.5), d.float(2))
Result:
1

addUint32

available since: 1.0.0

add takes two values of the type uint32 and adds them together.

Example:

Query:
e.addUint32(d.uint32(2147483648), d.uint32(2147483647))
Result:
4294967295

subInt32

available since: 1.0.0

subtract takes two numeric values of the type int32 and subtracts the first from the second value.

Example:

Query:
e.subInt32(d.int32(-2147483648), d.int32(2147483647))
Result:
1

subInt64

available since: 1.0.0

subtract takes two numeric values and subtracts the first from the second value.

Example:

Query:
e.subInt64(d.int64(), d.int64(9007199254740991))
Result:
-9007199254740991

toUint32

available since: 1.0.0

monadic numeric conversion function which returns the type in their name.

Example:

Query:
e.toUint32(d.float(2147483647.5))
Result:
2147483647

mulUint16

available since: 1.0.0

multiply takes two numeric values of the type uint16 and multiplies them.

Example:

Query:
e.mulUint16(d.uint16(32767), d.uint16(2))
Result:
65534

subUint16

available since: 1.0.0

subtract takes two numeric values of the type uint16 and subtracts the first from the second value.

Example:

Query:
e.subUint16(d.uint16(32768), d.uint16(32767))
Result:
1

subFloat

available since: 1.0.0

subtract takes two numeric values of the type float and subtracts the first from the second value.

Example:

Query:
e.subFloat(d.float(0.5), d.float(0.5))

addFloat

available since: 1.0.0

add takes two values of the type float and adds them together.

Example:

Query:
e.addFloat(d.float(0.5), d.float(0.5))
Result:
1

toUint64

available since: 1.0.0

monadic numeric conversion function which returns the type in their name.

Example:

Query:
e.toUint64(d.float(9007199254740990))
Result:
9007199254740990

ltInt16

available since: 1.0.0

Checks if the first value is less than the second

Example:

Query:
e.ltInt16(d.int16(-32768), d.int16(32767))
Result:
true

ltInt64

available since: 1.0.0

Checks if the first value is less than the second

Example:

Query:
e.ltInt64(d.int64(-9007199254740991), d.int64(9007199254740991))
Result:
true

gtUint64

available since: 1.0.0

Checks if the first value is greater than the second

Example:

Query:
e.gtUint64(d.uint64(), d.uint64(9007199254740991))

ltUint8

available since: 1.0.0

Checks if the first value is less than the second

Example:

Query:
e.ltUint8(d.uint8(), d.uint8(255))
Result:
true

addUint64

available since: 1.0.0

add takes two values of the type uint64 and adds them together.

Example:

Query:
e.addUint64(d.uint64(1), d.uint64(9007199254740990))
Result:
9007199254740991

mulInt64

available since: 1.0.0

multiply takes two numeric values of the type int64 and multiplies them.

Example:

Query:
e.mulInt64(d.int64(4503599627370495), d.int64(2))
Result:
9007199254740990

mulUint32

available since: 1.0.0

multiply takes two numeric values of the type uint32 and multiplies them.

Example:

Query:
e.mulUint32(d.uint32(2147483647), d.uint32(2))
Result:
4294967294

mulInt8

available since: 1.0.0

multiply takes two numeric values of the type int8 and multiplies them.

Example:

Query:
e.mulInt8(d.int8(63), d.int8(2))
Result:
126

gtInt8

available since: 1.0.0

Checks if the first value is greater than the second

Example:

Query:
e.gtInt8(d.int8(-128), d.int8(127))

subUint32

available since: 1.0.0

subtract takes two numeric values of the type uint32 and subtracts the first from the second value.

Example:

Query:
e.subUint32(d.uint32(2147483648), d.uint32(2147483647))
Result:
1

gtUint8

available since: 1.0.0

Checks if the first value is greater than the second

Example:

Query:
e.gtUint8(d.uint8(), d.uint8(255))

addInt16

available since: 1.0.0

add takes two values of the type int16 and adds them together.

Example:

Query:
e.addInt16(d.int16(-32768), d.int16(32767))
Result:
-1

toUint8

available since: 1.0.0

monadic numeric conversion function which returns the type in their name.

Example:

Query:
e.toUint8(d.float(127.5))
Result:
127

divUint32

available since: 1.0.0

divide takes two two numeric values of the type uint32 and divides them.

Example:

Query:
e.divUint32(d.uint32(4294967295), d.uint32(2))
Result:
2147483647

addInt64

available since: 1.0.0

add takes two values of the type int64 and adds them together.

Example:

Query:
e.addInt64(d.int64(-9007199254740991), d.int64(9007199254740991))

mulInt16

available since: 1.0.0

multiply takes two numeric values of the type int16 and multiplies them.

Example:

Query:
e.mulInt16(d.int16(16383), d.int16(2))
Result:
32766

toInt32

available since: 1.0.0

monadic numeric conversion function which returns the type in their name.

Example:

Query:
e.toInt32(d.float(2147483647.5))
Result:
2147483647

subInt8

available since: 1.0.0

subtract takes two numeric values and subtracts the first from the second value.

Example:

Query:
e.subInt8(d.int8(-128), d.int8(127))
Result:
1

divInt64

available since: 1.0.0

divide takes two two numeric values of the type int64 and divides them.

Example:

Query:
e.divInt64(d.int64(9007199254740991), d.int64(2))
Result:
4503599627370495

mulInt32

available since: 1.0.0

multiply takes two numeric values of the type int32 and multiplies them.

Example:

Query:
e.mulInt32(d.int32(1073741823), d.int32(2))
Result:
2147483646

gtUint16

available since: 1.0.0

Checks if the first value is greater than the second

Example:

Query:
e.gtUint16(d.uint16(), d.uint16(65535))

subInt16

available since: 1.0.0

subtract takes two numeric values and subtracts the first from the second value.

Example:

Query:
e.subInt16(d.int16(-32768), d.int16(32767))
Result:
1

gtInt32

available since: 1.0.0

Checks if the first value is greater than the second

Example:

Query:
e.gtInt32(d.int32(-2147483648), d.int32(2147483647))

toFloat

available since: 1.0.0

monadic numeric conversion function which returns the type in their name.

Example:

Query:
e.toFloat(d.uint64(9007199254740991))
Result:
9007199254740991

ltFloat

available since: 1.0.0

Checks if the first value is less than the second

Example:

Query:
e.ltFloat(d.float(5e-324), d.float(1.7976931348623157e+308))
Result:
true

divUint8

available since: 1.0.0

divide takes two two numeric values of the type uint8 and divides them.

Example:

Query:
e.divUint8(d.uint8(255), d.uint8(2))
Result:
127

gtInt64

available since: 1.0.0

Checks if the first value is greater than the second

Example:

Query:
e.gtInt64(d.int64(-9007199254740991), d.int64(9007199254740991))

divInt32

available since: 1.0.0

divide takes two two numeric values of the type int32 and divides them.

Example:

Query:
e.divInt32(d.int32(2147483647), d.int32(2))
Result:
1073741823

gtFloat

available since: 1.0.0

Checks if the first value is greater than the second

Example:

Query:
e.gtFloat(d.float(5e-324), d.float(1.7976931348623157e+308))

subUint64

available since: 1.0.0

subtract takes two numeric values of the type uint64 and subtracts the first from the second value.

Example:

Query:
e.subUint64(d.uint64(9007199254740991), d.uint64(9007199254740990))
Result:
1