RosanneParnell
asked on
Truncating a decimal
It seems that C# wants to round everything. I need to truncate a number instead.
i.e. 5.9 = 5, not 6
Is there a way to do this in C# without converting my number to a string, searching for the decimal and manipulating the string and converting back to a number?
i.e. 5.9 = 5, not 6
Is there a way to do this in C# without converting my number to a string, searching for the decimal and manipulating the string and converting back to a number?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.