Git Product home page Git Product logo

Comments (2)

SheetJSDev avatar SheetJSDev commented on May 18, 2024

@deepak4u2006 it is explained in the README:

The return value is a signed 32-bit integer.

If you need the unsigned value, convert to unsigned integer with >>>0:

var ADLER32 = require('adler-32');
let checkSum = ADLER32.str("formdata={\"data\":\"value\", \"key\":\"value1\", \"key2\":\"value2\"}123456") >>> 0;

Note that the web demo displays both types: http://oss.sheetjs.com/js-adler32/

adler32sign

That page uses the >>>0 trick to generate the unsigned value

from js-adler32.

deepak4u2006 avatar deepak4u2006 commented on May 18, 2024

@SheetJSDev Thanks for the quickest reply ever possible.
adding >>>0 worked like a dream.

Thanks again!!! 👍

from js-adler32.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.