SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[c#] How to remove decimal part from a number in C#
Home
Question
How to remove decimal part from a number in C#
Use
Math.Round
int d = (int) Math.Round(a, 0);
Examples related to
c#
•
How can I convert this one line of ActionScript to C#?
•
Microsoft Advertising SDK doesn't deliverer ads
•
How to use a global array in C#?
•
How to correctly write async method?
•
C# - insert values from file into two arrays
•
Uploading into folder in FTP?
•
Are these methods thread safe?
•
dotnet ef not found in .NET Core 3
•
HTTP Error 500.30 - ANCM In-Process Start Failure
•
Best way to "push" into C# array