KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a string "246246.246" that I'd like to pass to the IConvertable interface, ToInt16, ToInt32, ToIn64. What is the best way to parse a string with decimal places to an integer? This is a solution, but is there a better solution? string value = "34690.42724"; Convert.ToInt64(Convert.ToDouble(value));
Tags (comma-separated)
Save Edits
Cancel