Horje
How to truncate a decimal without rounding Code Example
How to truncate a decimal without rounding
var value = 1.23456M;
var shortenedValue = Convert.ToDecimal(value.ToString("0.###"));

Assert.Equals(shortenedValue, 1.234);
1234




Csharp

Related
convert text to ssml function Code Example convert text to ssml function Code Example
c# replace foreach with lambda Code Example c# replace foreach with lambda Code Example
rotate gameobject unity Code Example rotate gameobject unity Code Example
global variables unity Code Example global variables unity Code Example
set data annotation text in model c# Code Example set data annotation text in model c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10