Skip to main content
rw_int256 values can be very large, and therefore require more memory and processing power compared to smaller data types.

Overview

rw_int256 is a custom data type that represents a signed 256-bit integer with a storage size of 32 bytes. It is designed to handle large integer values, and can be useful in financial calculations, cryptography, and data analysis.

Usage

You can define a column with the rw_int256 type:

Casting

You can also convert other data types to rw_int256:
Or convert rw_int256 to double.

Supported functions

count

Returns the number of non-null rows.

min

Returns the minimum value in a set of values.

max

Returns the maximum value in a set of values.

sum

Returns the sum of all input values.

avg

Returns the average (arithmetic mean) of the selected values.

hex_to_int256

Converts a hexadecimal string to a 256-bit integer.

Standard deviation and variance

Returns population standard deviation, sample standard deviation, population variance, and sample variance.