Math.trunc() #javascript

preview_player
Показать описание
#coding #javascript #tutorial #shorts #asmr

Рекомендации по теме
Комментарии
Автор

Math.trunc(): returns the integer part of a number by removing any fractional digits.

theengineeringnotes
Автор

let x = anyNum
let y = x - ( x % 1)
console.log(y)

dnamis
Автор

you can just turn the float x into int x

NewHeartS
welcome to shbcf.ru