repl.txt (1015B)
1 2 {{alias}}( dtype ) 3 Returns the size (in bytes) of the canonical binary representation of a 4 specified numeric type. 5 6 The following numeric types are supported: 7 8 - float64: double-precision floating-point numbers 9 - float32: single-precision floating-point numbers 10 - float16: half-precision floating-point numbers 11 - int32: 32-bit two's complement signed integers 12 - uint32: 32-bit unsigned integers 13 - int16: 16-bit two's complement signed integers 14 - uint16: 16-bit unsigned integers 15 - int8: 8-bit two's complement signed integers 16 - uint8: 8-bit unsigned integers 17 - uint8c: 8-bit unsigned integers clamped to 0-255 18 - complex128: 128-bit complex numbers 19 - complex64: 64-bit complex numbers 20 21 Parameters 22 ---------- 23 dtype: string 24 Numeric type. 25 26 Returns 27 ------- 28 out: number 29 Size (in bytes). 30 31 Examples 32 -------- 33 > var s = {{alias}}( 'int8' ) 34 1 35 > s = {{alias}}( 'uint32' ) 36 4 37 38 See Also 39 -------- 40