ApiExamples.CustomBarcodeGenerator.CastDoubleToInt C# (CSharp) Метод

CastDoubleToInt() публичный статический Метод

Casts a double to int32 in a way that uint32 are "correctly" casted too (they become negative numbers).
public static CastDoubleToInt ( double value ) : int
value double
Результат int
        public static int CastDoubleToInt(double value)
        {
            long temp = (long)value;
            return (int)temp;
        }