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

int.Parse oddity

$
0
0

David:

Yes, that's exactly the behavior I expected!

I want "$2.99" to become 2, and not 3 or not 2.99. I am looking for truncation in this case, which is why first casting to a decimal amount doesn't make much sense to me. I would gladly do that, if I was after the full dollar amount.

Thanks for your replies though,

Sven.


Viewing all articles
Browse latest Browse all 15

Trending Articles



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