When the $filter function is used on a negative number with three or more digits, the less than comparison operator does not work correctly.
var num = -1500;
num = $filter('number')(num, 0);
if (num <= 15) {
console.log("working");
}
This issue occurs for all negative numbers below -999.5.
However, it is interesting to note that the comparison works when the condition is written as:
if (num <= $filter('number')(15, 0))
Do you have any insights into why this behavior is happening?