I am trying to lower decimal, can anyone help me to show how to use "toFixed" in this code? or if there is any other way?
miniseconds/1000/60/60/24 so I get the number of days.
function () {
try {
if ({{cookie - firstSeen}}) {
var now = new Date().getTime()
var time2conversion = now - {{cookie - firstSeen}}
return time2conversion/1000/60/60/24
}else{
return undefined
}
}catch(e) {
return undefined;
}
}
The result is 1.3964438888888886, but it would be for ex. 1.39.