8 references to Truncate
Microsoft.ML.Transforms (2)
Expression\BuiltinFunctions.cs (2)
264FunctionProviderUtils.Fn<R8, R8>(Math.Truncate)); 685return (R4)Math.Truncate(a);
Microsoft.TestPlatform.CommunicationUtilities (1)
JsonDataSerializer.Stj.cs (1)
163if (dict[key] is double d && d == Math.Truncate(d) && d is >= int.MinValue and <= int.MaxValue)
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
873double integralPart = Math.Truncate(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
698public static double Truncate(double x) => Math.Truncate(x);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (2)
1384return Truncate(value + CopySign(0.49999999999999994, value)); 1392return Truncate(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (1)
1963return (T)(object)Math.Truncate((double)(object)value);