The Number parseInt() static method takes a string and returns an integer. A second value can be passed of the specified radix/base number system to use. 10/decimal is used if a second value isn't passed.

    
    const number = 5.99;

    const numberParseInt = number.parseInt(number);

    console.log(numberParseInt);
    // 5

    console.log(Number.parseInt('10.33333'));
    // 10