02-10-2010 04:10 AM
Hi all,
From the VI i want to know the explanation for the following:
what actually the processes are happening..?
1) Decimal String To Number
2) Number To Hexadecimal String
3) Hexadecimal String To Number
please expalin be briefly..
thanks
02-10-2010 04:34 AM - edited 02-10-2010 04:35 AM
Hi muralicgowda,
you're asking about number <-> string conversions...
1) convert a string containing a decial number to a "real" number like "123" (as string) to "123" (as number, you can set the datatype on your own)
2) convert a number to a string containing that number in hexadecimal like "123" (as number) to "7B" (as string)
3) vice versa of point 2, like "123" (as hex string!) to "291" (as decimal number!)
02-10-2010 05:09 AM - edited 02-10-2010 05:10 AM
Just to complete the subject, keep in mind that the object 'number' is a constant entity in term of memory managed as a binary set in basic data management. Only its visual representation changes : decimal, hexadecimal, binary, real, floating, etc... but its intrinsic value doesn't change with the change of representation (no really right for real/floating but the idea is here).
But when you convert it as String, you distinguish the type because you change the memory management so, you lose a part of information describing the number (for example, you could lose the lenght of number).
02-10-2010 05:30 AM