https://cypress.io logo
Uhh depends on how you get the number. But you can...
# e2e-testing
m
Uhh depends on how you get the number. But you can do a parseint. Or try this trick but both tricks are just plain JavaScript
Copy code
js
var num = 2.9
console.log(num | 0); // 2