-
Notifications
You must be signed in to change notification settings - Fork 88
u8vector s16
Chris Petersen edited this page Oct 16, 2014
·
1 revision
u8vector->s16 converts a u8vector to an 16bit signed integer. The conversion is big endian.
| Parameter | Description |
|---|---|
| v | Input u8vector |
| ofs | Optional: Start position offset |
Example 1: Show some signed u8vector to number conversions
> (u8vector->s16 v)
-32639
> (u8vector->s24 v)
-8355456
> (u8vector->s32 v)
-2138996607
> (u8vector->s48 v)
-140181281603455
> (u8vector->s64 v)
-9186920471163993983
> (u8vector->s96 v)
-39457522974602265207569809279