Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
dec
- Page 1
Re: How old is your computer?
Hardware and Software
2 Months Ago
by Reverend Jim
… currently have an ASUS Vivobook K350 that I bought in
Dec
2022 but I would never buy another ASUS product. Too…
Re: dec to hex converter
Programming
Software Development
13 Years Ago
by hugo17
…string result } int main(void) //Aufruf { int
dec
= 0; //Deklaration Variable
dec
char exit = 'a'; while ( exit != 'n…//Ausgabe Text scanf("%i",&
dec
); // Texteingabe printf("\n %i schreibt …man in Hexadezimalsystem so: ",
dec
); //Ausgabe Text dechex(
dec
); //Funktionsaufruf hexdec printf("\nM\…
Re: DEC VAX Question
Hardware and Software
Hardware
13 Years Ago
by rubberman
…] Though we did really have the VAX, VM 370, and
DEC
10/20 manuals around here at one time. I think… longer. Anyway, the VM370 docs were mine, and the VAX/
DEC
docs were my wife's. You know that old saw… have 36 bits, you aren't dealing with a full
DEC
"? :-)
dec to hex converter
Programming
Software Development
16 Years Ago
by rocketman03
hey im trying to create a program to convert
dec
to hex , but this only lets me print either integers …
DEC VAX Question
Hardware and Software
Hardware
13 Years Ago
by Thermalnuke
I know
DEC
VAX has a single instruction that is used for loading ans storing all programs that are visible registers/ to memory, but the thing i dont understand is there really a reason to have an instruction pair for it? what are some pros and cons for it?
Re: FILE + conversion from dec to hex = I need help
Programming
Software Development
18 Years Ago
by Sin-da-cat
… out the function and just did the whole conversion from
dec
to hex in the body of 'fscanf' with local … FILE *c,*b; int a; c=fopen("C:\\C_fajlovi\\
dec
.txt","r"); b=fopen("C:\\C_fajlovi…0) s[i++]='0'; while (a>0){ /*turning a
dec
(int) to a hex (string) value*/ if ((a%16)<…
FILE + conversion from dec to hex = I need help
Programming
Software Development
18 Years Ago
by Sin-da-cat
…'s the assignment: "[I]Each line of the file
dec
.txt contains a whole number (>0). Write a program… equivalent of the whole number in the corresponding line of
dec
.txt.[/I]" Can someone please walk me through this…
Need help storing HEX,DEC. value from color picker to MySQL database
Programming
Web Development
16 Years Ago
by eawade
… do. I have a form that contains fields for HEX,
DEC
value. I'm using a color picker (RGB ColorPicker 1… want to do is be able to save the HEX,
DEC
values from the textfields to a MySQL database. I've…
Re: FILE + conversion from dec to hex = I need help
Programming
Software Development
18 Years Ago
by Sin-da-cat
…;dek_hex(broj)); /*dek_hex should be a function that turns a
dec
number into hexadecimal and returns it in the form of…
Re: IP Address convertion from dec 2 hex
Programming
Software Development
13 Years Ago
by sumithps
http://www.ipaddresslocation.org/convertip.php this site will helps you to convert ip to
dec
or hexa
dec
Help with program to convert hex to dec
Programming
Software Development
18 Years Ago
by Atsnipes
… in the LC-3 assembly language to convert hex to
dec
. Here are the exact guidelines: "Your program begins at…
hex to dec conversion
Programming
Software Development
14 Years Ago
by blacknred
… is to have them all converted to normal base 10
Dec
format. myfile.csv [QUOTE]0x0000004d,0x00005275,0x37106800,0x000008a2,0x000009a2 0x0000004d…
IP Address convertion from dec 2 hex
Programming
Software Development
13 Years Ago
by Diwakar Gana
Dear All, Can any one tell me how to convert the IP address from
dec
to hex decimal. For Ex: 255.102.25.02/32 should look like FF661902 since its 32 bit 255.102.25.02/31 should derive two values FF661902, FF661903 since its 31 bit
Anyway to convert a dec/oracle rdb database to something else like mysql
Programming
Databases
11 Years Ago
by Sevyt
A friend asked me to rewrite a program for him. Though the problem is it s using a rdb database, i am assuming this is a
dec
/oracle rdb database. Which i honestly never used and have no knowledge of. So i was wondering if there is any way to convert this to a sql database or even access so i can see what the database looks like.
Re: Anyway to convert a dec/oracle rdb database to something else like mysql
Programming
Databases
11 Years Ago
by rubberman
Do you know if this version of RDB has an ODBC interface? If so, you can use that to migrate the data to most any current database. Oracle databases all have ODBC available. In any case, a
DEC
RDB database is NOT Oracle... :-)
Re: dec to hex converter
Programming
Software Development
16 Years Ago
by ddanbe
I am assuming you are working with positive integers. Tell me how can quotient = num/16 ever be negative? You are testing for it in both functions.
Re: dec to hex converter
Programming
Software Development
16 Years Ago
by ZZucker
Why don't you put a few test printf's in to see what's going on.
Re: dec to hex converter
Programming
Software Development
16 Years Ago
by devnar
[icode]b[j++]=((remainder-10)+'A');[/icode] This doesn't behave the way you want it to behave. I'm assuming that b[] is an array of integers. The above expression will only store ascii values of A,B,C,D,E,F. I suppose modifying your printf statement within the for loop will solve your problem. [code=c]for( j = count-1 ; j >=0 ; j--) if(b[j]>…
Re: dec to hex converter
Programming
Software Development
16 Years Ago
by Salem
Or even use a debugger, and put the variables in the watch window, so you can see what happens as you single step the code. So long as you can imagine what should happen next, that's all you need. So that when something you didn't expect happens, you've found a bug.
Re: dec to hex converter
Programming
Software Development
16 Years Ago
by rocketman03
[QUOTE=devnar;721877][icode]b[j++]=((remainder-10)+'A');[/icode] This doesn't behave the way you want it to behave. I'm assuming that b[] is an array of integers. The above expression will only store ascii values of A,B,C,D,E,F. I suppose modifying your printf statement within the for loop will solve your problem. [code=c]for( j = count-1 ; …
Re: dec to hex converter
Programming
Software Development
15 Years Ago
by mapla
REVERSED ORDER char sh[100]=""; char sh1[100]; int convertHex(int num) { quotient=(num / 16); remainder=(num % 16); if (remainder <= 9 && quotient >= 1) { printf("%d",remainder); convertHex(quotient);…
Re: dec to hex converter
Programming
Software Development
15 Years Ago
by sbesch
How about a completely different approach that avoids all the dividing and most of the comparisons and is easily extensible to longer word lengths and can be fixed up to return the string. [code=c] #include <stdlib.h> /* Notes: 1) Internal representation of ALL numbers is already in hex. For this reason, simplest hex print function…
Re: dec to hex converter
Programming
Software Development
13 Years Ago
by WaltP
[QUOTE=hugo17;]Ok, It's my turn of trying a different way of solving the problem: . . . SO how do you like my code?.[/QUOTE] It's bad... 1) Two years too late 2) No formatting making the code hard to follow 3) Using [ICODE]fflush(stdin);[/ICODE] -- not defined for input streams 4) Using sequential IFs instead of SWITCH.
Re: DEC VAX Question
Hardware and Software
Hardware
13 Years Ago
by rubberman
Argh! VAX questions! I haven't had to deal with any of this cruft for over 20 years! If you want, I might still have my system documentation in some boxes hidden in my basement, somewhere... :rolleyes: I think I also have my IBM VM 370 manuals in the same place...
Re: DEC VAX Question
Hardware and Software
Hardware
13 Years Ago
by Thermalnuke
lmao i think i got it did a nit more digging
Re: DEC VAX Question
Hardware and Software
Hardware
13 Years Ago
by rubberman
Anyway, I have no clue as to the answer for your original question. Sorry. That (previous post) was my sarcastic clone answering... :-)
Re: Hex to dec
Programming
Software Development
13 Years Ago
by skaa
…mGotoEndEx inc esi inc ecx jmp mGotoEnd mGotoEndEx:
dec
esi mov edx,0 mov ebx,1 mConvertToNumber… mul ebx pop edx mov ebx,eax
dec
esi loop mConvertToNumber mov edi,sdec push …
Method keeps resulting in error
Programming
Software Development
12 Years Ago
by Magda6347
Dec
7, 2012 at 11:18pm Im trying to create a …
dec to hex converion
Programming
Software Development
18 Years Ago
by jimbonk8e
heres what i have but it wont paste the letters to the corresponding digit public String Hex(int z) { num=z; while(num>=1) { z = num % 16; hex = z + hex; num /= 16; switch (z) { case 10: hex ="a"; break; case 11: hex ="b"; break; case 12: hex ="c"; break; case 13: …
Re: dec to hex converion
Programming
Software Development
18 Years Ago
by jwenting
There's a built in method to do just that... Not going to tell you what it is as that would be too simple, just look in the API docs for the logical classes you'd expect to have such methods.
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
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC