Quantcast
Channel: int.Parse oddity
Viewing all articles
Browse latest Browse all 15

int.Parse oddity

$
0
0

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 all articles
Browse latest Browse all 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>