Sunday, 15 January 2012

JavaScript C Style Type Cast From Signed To Unsigned -



JavaScript C Style Type Cast From Signed To Unsigned -

how type cast number in javascript?

= (unsigned int)atoi(arg1); b = (unsigned int)atoi(arg2);

assuming , b can signed.

i want convert 4 byte signed integer 4 byte unsigned integer.

i know there no such thing type casting or signed/unsigned in javascript. looking easy understand algorithm.

you can seek a = arg1>>>0, i'm not sure looking for.

see this question more details.

javascript

No comments:

Post a Comment