Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

s32->u8vector converts an 32bit signed integer to a u8vector in big endian order.

Parameter Description
v Integer value to be converted

Example

Example 1: Some number conversions from signed integers to u8vectors

> (s16->u8vector -127)
#u8(255 129)
> (s24->u8vector -9125)
#u8(255 220 91)
> (s32->u8vector -100000000)
#u8(250 10 31 0)
> (s48->u8vector -123456789012)
#u8(255 227 65 102 229 236)
> (s64->u8vector -1234567890123456)
#u8(255 251 157 42 195 117 69 64)
> (s96->u8vector -123456789012345678901234567)
#u8(255 153 225 2 14 167 13 87 211 96 180 121)  
Clone this wiki locally