function

crc32 . string . sncode

VERSIONlatest Calculates the crc32 polynomial of a string.

CRC32(1e)

NAME

crc32 - Calculates the crc32 polynomial of a string.

SYNOPSIS

crc32(str,asint)

PARAMETERS

str
The data. asint Returned as integer.

RETURN 

Integer
Returns the crc32 checksum of str as an integer. It is used to detect errors in data transmission. Datas entering the cycle get a "check value" that is recalculated at the end, enabling the user to spot any differences in their content. 
 
 
DEFINITION
 
CRC stands for cyclic redundancy check. 
 

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

in:  res={_{crc32("The quick brown fox jumped over the lazy dog.")}}.
out: res=82a34642.

in:  res={_{crc32("The quick brown fox jumped over the lazy dog.",true)}}.
out: res=-2103228862.

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>