Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
octal
- Page 1
Octal to Decimal Conversion
Programming
Software Development
15 Years Ago
by dagohbah
… is a 9 in decimal...which should be 11 in
octal
. Same thing with 28, should be 30. I got…7; return 0; } /**************/ int OctalIntoDecimal(int answer) { //This function converts
octal
into decimal. double i; int number; int r; int m…, //then out sources the answer to convert it back to
octal
. cout << "Immediate Add" <<…
Re: octal constant error
Programming
Software Development
12 Years Ago
by bguild
Starting a number with `0` means that it is an
octal
number which means that all digits are at least `0` …and at most `7`. An
octal
number looks like a decimal number but it has a… different meaning. You must be wary of accidentally using an
octal
number when you want an ordinary decimal number. You are…
octal conversion
Programming
Software Development
20 Years Ago
by gowswan
sir, ihave a doubt on converting a inputed decimel number to a
octal
number will u help me?
Re: octal conversion
Programming
Software Development
20 Years Ago
by jwenting
you mean you want to print an
octal
representation of a decimal number? Check out your language reference for itoa.
Octal to Decimal number conversion program
Programming
Software Development
17 Years Ago
by newport
I'm trying to make a program that converts
octal
numbers to decimal numbers. I know the concept is taking …
Re: Octal to Decimal number conversion program
Programming
Software Development
17 Years Ago
by Narue
>I'm trying to make a program that converts
octal
numbers to decimal numbers. I don't suppose this would work for you: [code=c] #include <stdio.h> int main ( void ) { int number; scanf ( "%o", &number ); printf ( "%d\n", number ); return 0; } [/code]
octal to hexa with out format strings
Programming
Software Development
16 Years Ago
by sambafriends
Hi, any body guide me a program how to convert
octal
to hexa decimal number using c lnaguage without using %x %o regrards, samba
octal constant error
Programming
Software Development
12 Years Ago
by sh4rif
….cpp:30:55: error: invalid digit "9" in
octal
constant Someone had adviced me to remove the leading zero…
Re: How to isolate each octal number for conversion?
Programming
Software Development
14 Years Ago
by tracydo
…new Scanner(System.in); System.out.println("
Octal
to Binary Conversion"); System.out.println("…;7) System.out.println( "Not a valid
octal
number!"); } } // prompt for input more …print("Do you want to enter another
Octal
number? "); System.out.println("…
Converting directly from hexadecimal to octal
Programming
Software Development
12 Years Ago
by ralph.d.abernathy.1
…, num_str, 8); cout << "\n The
octal
representation of the given binary is: " <<…n Enter the decimal value you wish to convert into
octal
and hexadecimal: "; cin >> n;… '1'; while(choice=='1') { printf("\nEnter the
octal
value you wish to convert into hexadecimal: "); scanf_s("…
Convert octal to binary
Programming
Software Development
14 Years Ago
by tracydo
…of reading it in. *Inputs: From keyboard ?
octal
#'s to be translated (converted) *Outputs: Interaction… Scanner(System.in); System.out.println("
Octal
to Binary Conversion"); System.out.println(&…7) System.out.println( "Not a valid
octal
number!"); } } // prompt for input …
Re: How to isolate each octal number for conversion?
Programming
Software Development
14 Years Ago
by tracydo
… = new Scanner(System.in); System.out.println("
Octal
to Binary Conversion"); System.out.println("Enter …gt;7) System.out.println( "Not a valid
octal
number!"); // prompt for input more OctNum System.…
How to isolate each octal number for conversion?
Programming
Software Development
14 Years Ago
by tracydo
… of reading it in. *Inputs: From keyboard Ð
octal
#'s to be translated (converted) *Outputs: Interaction with…new Scanner(System.in); System.out.println("
Octal
to Binary Conversion"); System.out.println("…) System.out.println( "Not a valid
octal
number!"); // prompt for input more OctNum…
Re: Convert octal to binary
Programming
Software Development
14 Years Ago
by bibiki
let's say 24546 is an
octal
number! what it actually says is that you…the next one (for a decimal number). For an
octal
number, the value of each digit is 8 times…into a binary number is different from converting an
octal
number into a binary number. which one do …you want? do you want to convert an
octal
number directly to a binary number, or do …
Re: Converting directly from hexadecimal to octal
Programming
Software Development
12 Years Ago
by RonalBertogi
… think there's no way to **directly** convert hex to
octal
because a hex value needs to be parsed first to… always the same: to convert decimal to another notation (hex,
octal
) you divide the number with your base (radix), putting the…
Re: Converting directly from hexadecimal to octal
Programming
Software Development
12 Years Ago
by Nutster
… line 307 you tell `cin` that you want to read
octal
values. Use the `hex` modifier instead, then use the `oct…
Re: How to isolate each octal number for conversion?
Programming
Software Development
14 Years Ago
by NormR1
… int intVal = Integer.parseInt(OctVal, 8); System.out.println("
octal
number: " + OctVal + ", as decimal=" + intVal… + ", as binary=" + Integer.toBinaryString(intVal)); //
octal
number: 34526, as decimal=14678, as binary=11100101010110 [/CODE] Looking…
Re: Convert octal to binary
Programming
Software Development
14 Years Ago
by bibiki
tracydo, let's say you have
octal
number 75, which is 61 decimal. if you want to … 111101, which is the binary equivalent of decimal 61, or
octal
75. is it clear now? I think you have not…
Re: Convert octal to binary
Programming
Software Development
14 Years Ago
by tracydo
…) either way would be fine for me: direct covert from
octal
to binary or through decimal. What ever way explain the…
Decimal system to Binary, Octal and Hexadecimal system Conversion..
Programming
Software Development
16 Years Ago
by campuzcrazyness
… printf("########^_^ Convert Decimal system to
Octal
system ^_^########"); gotoxy(5,6); printf…quot;); gotoxy(5,7); printf("------------------------------------------------------------------------");
octal
= 8; gotoxy(28,9);printf("enter …
Re: Decimal system to Binary, Octal and Hexadecimal system Conversion..
Programming
Software Development
16 Years Ago
by Adak
… printf("########^_^ Convert Decimal system to
Octal
system ^_^########"); gotoxy(5,6); printf…quot;); gotoxy(5,7); printf("------------------------------------------------------------------------");
octal
= 8; gotoxy(28,9);printf("enter …
Re: Decimal system to Binary, Octal and Hexadecimal system Conversion..
Programming
Software Development
16 Years Ago
by campuzcrazyness
… printf("########^_^ Convert Decimal system to
Octal
system ^_^########"); gotoxy(5,6); printf…quot;); gotoxy(5,7); printf("------------------------------------------------------------------------");
octal
= 8; gotoxy(28,9);printf("enter …
Re: How to isolate each octal number for conversion?
Programming
Software Development
14 Years Ago
by tracydo
… given code here, first,you only assigned to one particular
Octal
number while the program needs to convert to whatever the… input
octal
is from the user. Second, I was not allow to…
Binary to octal giving wrong result
Programming
Software Development
13 Years Ago
by abhishek_ag
…;i--) { output1+=dec[i]; } /*converts decimal to
octal
*/ while(output1!=0) { rem=output1%8; output1=output1/…k+=1; } /*prints the value of
octal
*/ printf("the
octal
representation is"); for(;k>0;k…
Re: How to isolate each octal number for conversion?
Programming
Software Development
14 Years Ago
by NormR1
Could you give an example of what your expected output would be for the input of: 34526? Think about how you would convert a String of "34526" to a decimal value in an int variable. Each digit character has a value 10 times the next one (for a decimal number). For an
octal
number, the value of each digit is 8 times.
help me in this program octal convertion
Programming
Software Development
17 Years Ago
by scapu
… program. C++ program to convert an
octal
number to decimal and from decimal back to
octal
. [code=cplusplus] #include <iostream>…,p,sum,x,m,i; cout<<"Enter
octal
no : "; cin>>oct; for(i=1;m…%8; d/=8; count+=1; } cout<<"The
octal
no is"; for(i=count-1;i>=0…
Re: Decimal system to Binary, Octal and Hexadecimal system Conversion..
Programming
Software Development
16 Years Ago
by noelaligoy
what is the code of this: ---------------------------------------- This program will convert
octal
to hexa: Enter a number: ---- What Would you like to do, Press O for
octal
and H for hexa: ----- The Answer is: ----- Would you like to convert again(Y/N): ---- thanks
convert decimal to binary,octal & hexadecimal
Programming
Software Development
15 Years Ago
by jolianne
hi can you help me make a program that convert decimal to binary,
octal
& hexadecimal, binary to decimal,
octal
& hexa,
octal
to decimal, binary & hexa and hexa to decimal, binary &
octal
? That's our project in logic design. thanks in advance...
Converting decimal to binary, octal and hexadecimal
Programming
Software Development
14 Years Ago
by anthonys1mom
…working on a program to convert decimal to binary,
octal
and hexadecimal. I can get the code correct to …convert decimal to binary and
octal
, but in reverse. I was 'given' the code…lt; total << " "; } return 0; } [/CODE]
Octal
[CODE]#include<iostream> using namespace std; int main…
Converting decimal to hexa, octal and binary
Programming
Software Development
13 Years Ago
by cookiemonstah
…decimal value, and can convert the decimal value to hexa,
octal
and binary. I already have the codes for each. Predefined… stacks. SCENARIO: [1]Deci to Hex [2]Deci to
Octal
[3]Deci to Binary user inputs 1(for hexadecimal conversion… to try again user exits program And the same with
octal
, but in hexadecimal, it outputs 0024. Any help would…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC