Quantcast
Viewing latest article 12
Browse Latest Browse All 15

int.Parse oddity

David:

Thanks for your reply.

I am not sure I think that's logical. My workaround is to parse the string as a decimal value and then cast it, as in:

int ivalue = (int)dvalue;

I would expect the parser to be even more tolerant of precision than the cast operation?

SA.


Viewing latest article 12
Browse Latest Browse All 15

Trending Articles