A
Aamir Mahmood
Hi,
I have working on a system in which I have to manipulate *very* big numbers.
Like
32368060745625089670148189374568111100874165870871388541651800834565616109380834613212956588769877
They may be upto 10000 digits long.
These numbers are coming through a device in ascii format, I am creating a
text file and saving these numbers in the file.
Is there a way that I can convert them into binary.
For example if the incoming number is '14005685717805198227'
it should be saved in file as 11000010 01011110 00110000 11110100 01111101
10001010 01101011 10010011 (binary data) (File size: 8 bytes)
instead of ascii '1', '4', '0', '0', '5', '6', '8', '5', '7', '1', '7',
'8', '0', '5', '1', '9', '8', '2', '2', '7' (ascii/text data) (File size: 20
bytes).
I am looking for a hint on how to implement this, of if there are libraries
availeble to acheive this.
Thanks.
-
AM
I have working on a system in which I have to manipulate *very* big numbers.
Like
32368060745625089670148189374568111100874165870871388541651800834565616109380834613212956588769877
They may be upto 10000 digits long.
These numbers are coming through a device in ascii format, I am creating a
text file and saving these numbers in the file.
Is there a way that I can convert them into binary.
For example if the incoming number is '14005685717805198227'
it should be saved in file as 11000010 01011110 00110000 11110100 01111101
10001010 01101011 10010011 (binary data) (File size: 8 bytes)
instead of ascii '1', '4', '0', '0', '5', '6', '8', '5', '7', '1', '7',
'8', '0', '5', '1', '9', '8', '2', '2', '7' (ascii/text data) (File size: 20
bytes).
I am looking for a hint on how to implement this, of if there are libraries
availeble to acheive this.
Thanks.
-
AM