SyntaxFix
Write A Post
Hire A Developer
Questions
The following solution will truncate to int.MinValue/int.MaxValue if the value is out of Integer bounds.
myLong < int.MinValue ? int.MinValue : (myLong > int.MaxValue ? int.MaxValue : (int)myLong)