The Standard LibrarymathMethodsabsOn this pageabsGet the absolute value of a number. abs(-64); // 64 Syntax abs(value) Returns The absolute value.