enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. How to use Python to convert an octal to a decimal

    stackoverflow.com/questions/35450560

    I had this little homework assignment and I needed to convert decimal to octal and then octal to decimal. I did the first part and could not figure out the second to save my life. The first part went

  3. You could use the Long.toBinaryString () or Long.toOctalString () to convert a decimal to binary or octal. here are 2 methods that convert from binary to decimal and from octal to decimal, you could also convert from octal to decimal then to binary using these methods. public long binaryToDecimal(String binary) {. long decimal = 0; int power = 0;

  4. Octal to Decimal in C - Stack Overflow

    stackoverflow.com/questions/9895600

    How to convert Binary to Decimal and Octal? 1. Converting Octal numbers To Decimal in C. 0.

  5. I would like to convert numbers between different bases, such as hexadecimal and decimal. Example: How do you convert hexadecimal 8F to decimal?

  6. I have this code to convert Octal numbers to decimal, but my question / problem is how can you make a code that will convert octal decimal numbers. Example: 0.75 8 → ___ 10. 0.00001 8 → ___ 10. in converting, you must multiply each digit my the square of 8 (8,64,542...) I need help in this. You are mixing things up.

  7. convert octal to decimal in bash - Stack Overflow

    stackoverflow.com/questions/48526711

    I have some problem while reading a file with numbers, when the number is '09' or '08'. The string I read loks like 0:09.21 this. It's a time value. I want to calculate the ms of this value. Wenn

  8. Convert Octal numbers to Decimal numbers in Lex

    stackoverflow.com/questions/20612827

    You convert once using atoi(), then somehow reinterpret the already converted number as if it were in octal? The result of atoi() is "a number"; it's probably represented as bits in the computer memory, but it's certainly not "in decimal" as your code seems to assume.

  9. .net - Octal equivalent in C# - Stack Overflow

    stackoverflow.com/questions/4247037

    62. In C language octal number can be written by placing 0 before number e.g. int i = 012; // Equals 10 in decimal. I found the equivalent of hexadecimal in C# by placing 0x before number e.g. int i = 0xA; // Equals 10 in decimal.

  10. Converting Decimal to Octal Using Bitwise Operators

    stackoverflow.com/questions/46007561

    The below function is intended to convert its parameter, an integer, from decimal to octal. std::string dec_to_oct (int num) { std::string output; for (int i=10; i>=0; --i) { output += std::to_string ( (num >> i*3) & 0b111 ); } return output; } It works for any positive input, however, for num = -1 it returns 77777777777, when it should return ...

  11. Python Octal to Decimal - Stack Overflow

    stackoverflow.com/questions/67300423

    This works for digits above 3, however, due to how octal is converted into binary, octal numbers with digits 0-3 don't display correctly, causing the conversion to decimal to be incorrect. for example, the octal number 437 converts to 10011111, instead of 100011111, which affects the code to convert it into decimal.