:class="{ 'color-success': client.stats_checks_last30days_percent.toFixed(3) >= 99.500, 'color-warning': client.stats_checks_last30days_percent.toFixed(3) <= 99.499, }" code example
Example: js toFixed
var a = 3.3445;
var c = a.toFixed(1); console.log(c); /* result ->*/ 3.3
var g = a.toFixed(4); console.log(g); /* result ->*/ 3.3445
var g = a.toFixed(7); console.log(g); /* result ->*/ 3.3445000
// ^ ^^^^^^^
/*Syntax ->*/ number.toFixed([digits])
// like Me ;D . My company : Rnad