INNER CODE UNIT · C++

beginning

margelo/react-native-bignumber · cpp/BigNumber/MGBigNumber.cpp:93

                int beginning = i * 4;
                for (int j = 0; j < 4; ++j)
                {
                    value *= 2;
                    if (numberAsString[beginning + j] == '1')
                    {
                        value++;
                    }
                }
                if (value <= 9)
                {
                    inHex[i] = '0' + value;
                }
                else
                {
                    inHex[i] = 'a' + value - 10;
                }
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…