Jul 19, 2005 #1 E 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
Jul 19, 2005 #2 C C-Man Advanced Member level 4 Joined Jul 19, 2001 Messages 1,059 Helped 90 Reputation 180 Reaction score 17 Trophy points 1,318 Activity points 10,189 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
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
Jul 19, 2005 #3 E 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 sorry I use Pic 16f877 & picclite
Jul 20, 2005 #4 C C-Man Advanced Member level 4 Joined Jul 19, 2001 Messages 1,059 Helped 90 Reputation 180 Reaction score 17 Trophy points 1,318 Activity points 10,189 ernytony said: sorry I use Pic 16f877 & picclite Click to expand... Then my above post should be ok for you ... best regards
ernytony said: sorry I use Pic 16f877 & picclite Click to expand... Then my above post should be ok for you ... best regards