How can I convert a long to a string that represents the number in th IEEE language.
Thanks alot in advanced.
Regards,
Printable View
How can I convert a long to a string that represents the number in th IEEE language.
Thanks alot in advanced.
Regards,
can't you just do
string var;
long x=100;
var ="x";
Where did you get that? :eek: You would end up with a string that holds "x" not "100".Quote:
Originally Posted by Doorsdown
What is the IEEE Language?
There are IEEE defined standard representation for floating point numbers, but not longs.
He probably meant IEEE standard, not language... ;)Quote:
Originally Posted by rdrast
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,
:eek:Quote:
Originally Posted by MrSkywalker
Did you read FAQs suggested by Ejaz?
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.Quote:
Originally Posted by MrSkywalker
Exactly!
Do you have something that could help me out?
Thanks a lot.
Regards,
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
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?Quote:
Originally Posted by MrSkywalker