Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

convert double to char array

Status
Not open for further replies.

ernytony

Newbie level 6
Joined
Jun 30, 2005
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,376
is possible convert double to char array
 

You did not mention which compiler and processor you are using.

On an 8 bit processor something like this should work:
Code:

union
{
double doub;
char chars[4];
}help;



Now help.doub would adress your double value and help.chars[0] to help.chars[3] would adress the same as single chars.

Hope this does what you want to do.

best regards
 

sorry I use Pic 16f877 & picclite
 

ernytony said:
sorry I use Pic 16f877 & picclite

Then my above post should be ok for you ...

best regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top