The Standard LibrarymathMethodstruncOn this pagetruncTruncates decimal places, returning the integer part. trunc(64.5); //64 Syntax trunc(value) Returns The truncated value as an integer. Notes Returns a SIGNED integer.