Hızlı yanıt: kod örneği
Delphi's function performs as designed. The documentation says (emphasis mine):Truncates a real number to an integer.In Delphi code, the Trunc function truncates a real-type value to an
integer-type value. X is a real-type expression. Trunc returns an
Int64 value that is the value of X rounded toward zero.The .net equivalent to Delphi is .The Delphi equivalent to .net is .
Trunc
Trunc
Math.Truncate
System.Math.Floor
Floor