8 references to Truncate
Microsoft.ML.Transforms (2)
Expression\BuiltinFunctions.cs (2)
264
FunctionProviderUtils.Fn<R8, R8>(Math.
Truncate
));
685
return (R4)Math.
Truncate
(a);
Microsoft.TestPlatform.CommunicationUtilities (1)
JsonDataSerializer.Stj.cs (1)
163
if (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)
873
double integralPart = Math.
Truncate
(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
698
public static double Truncate(double x) => Math.
Truncate
(x);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (2)
1384
return
Truncate
(value + CopySign(0.49999999999999994, value));
1392
return
Truncate
(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (1)
1963
return (T)(object)Math.
Truncate
((double)(object)value);