|
-
April 26th, 2005, 11:24 PM
#1
Conversion of a long!
How can I convert a long to a string that represents the number in th IEEE language.
Thanks alot in advanced.
Regards,
-
April 26th, 2005, 11:43 PM
#2
Re: Conversion of a long!
can't you just do
string var;
long x=100;
var ="x";
-
April 27th, 2005, 01:57 AM
#3
Re: Conversion of a long!
-
April 27th, 2005, 02:51 AM
#4
Re: Conversion of a long!
 Originally Posted by Doorsdown
can't you just do
string var;
long x=100;
var ="x";
Where did you get that? You would end up with a string that holds "x" not "100".
-
April 27th, 2005, 04:37 AM
#5
Re: Conversion of a long!
What is the IEEE Language?
There are IEEE defined standard representation for floating point numbers, but not longs.
-
April 27th, 2005, 08:06 AM
#6
Re: Conversion of a long!
 Originally Posted by rdrast
What is the IEEE Language?
He probably meant IEEE standard, not language...
-
April 27th, 2005, 09:12 AM
#7
Re: Conversion of a long!
Exactly...!!!
It's not a language, I ment a standar for The Institute of Electrical and Electronics Engineers.
By the way in VB I use this dll, QPRO32.DLL. However, I thik there should be a way to do this in c++ with out using this dll.
Regards,
-
April 27th, 2005, 09:37 AM
#8
Re: Conversion of a long!
 Originally Posted by MrSkywalker
By the way in VB I use this dll, QPRO32.DLL. However, I thik there should be a way to do this in c++ with out using this dll.
Did you read FAQs suggested by Ejaz?
"Programs must be written for people to read, and only incidentally for machines to execute."
-
April 27th, 2005, 10:32 AM
#9
Re: Conversion of a long!
 Originally Posted by MrSkywalker
Exactly...!!!
It's not a language, I ment a standar for The Institute of Electrical and Electronics Engineers.
By the way in VB I use this dll, QPRO32.DLL. However, I thik there should be a way to do this in c++ with out using this dll.
Regards,
What they're trying to say is that there isn't a standard IEEE format for displaying a long integer. You might be confused with IEEE floating-point format, which defines how a floating-point quantity is stored as binary data.
-
April 27th, 2005, 02:22 PM
#10
Re: Conversion of a long!
Exactly!
Do you have something that could help me out?
Thanks a lot.
Regards,
-
April 27th, 2005, 05:45 PM
#11
Re: Conversion of a long!
I'm still confused as to what you are looking for, but if you just want the representation of floating point, see here:
http://www.psc.edu/general/software/...ieee/ieee.html
-
April 28th, 2005, 05:29 AM
#12
Re: Conversion of a long!
 Originally Posted by MrSkywalker
Exactly!
Do you have something that could help me out?
Thanks a lot.
Regards,
No, we don't. You said that you wanted to know how to print an unsigned long in standard IEEE format. This format does not exist. What do you need then?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|