P
Peter K
Hi
I am calling a third-party data-access class which returns a data object to
me which contains a list of data. The items in the list are all of "object"
type, yet I can see they are all really "string" objects, and some of them
are actually string representations of int or decimal values.
For example, I get "56.001" or "787,902" returned in the list.
My problem is converting these int or decimal strings to real int or decimal
values.
How can my application know that "56.001" is a representation of "56 and
1/1000", or a representation of "fifty six thousand and one", for instance?
I take it I need to know how the 3rd-party library is converting or
generating these values?
Well, lets's say I do know that "56.001" is an integer, and represents the
value "fifty six thousand and one" - how do I convert it to an int value?
Thanks,
Peter
I am calling a third-party data-access class which returns a data object to
me which contains a list of data. The items in the list are all of "object"
type, yet I can see they are all really "string" objects, and some of them
are actually string representations of int or decimal values.
For example, I get "56.001" or "787,902" returned in the list.
My problem is converting these int or decimal strings to real int or decimal
values.
How can my application know that "56.001" is a representation of "56 and
1/1000", or a representation of "fifty six thousand and one", for instance?
I take it I need to know how the 3rd-party library is converting or
generating these values?
Well, lets's say I do know that "56.001" is an integer, and represents the
value "fifty six thousand and one" - how do I convert it to an int value?
Thanks,
Peter