You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for such a useful utility, this is a godsend for working with multi resolution CSS!
Unfortunately though, there seems to be a bug related to multiplying by a float since ELisp casts to the most granular number type...
It seems like you're using natnump as a predicate for whether or not a number is positive or negative (see here), however, this predicate also checks the number is an integer.
Performing an operation of 100 × 0.75, like so;
(*1000.75) ;; 75.0
(natnump75.0) ;; nil
(natnump75) ;; t
Thanks for such a useful utility, this is a godsend for working with multi resolution CSS!
Unfortunately though, there seems to be a bug related to multiplying by a float since ELisp casts to the most granular number type...
It seems like you're using
natnump
as a predicate for whether or not a number is positive or negative (see here), however, this predicate also checks the number is an integer.Performing an operation of
100 × 0.75
, like so;Means
natnump
returnsnil
causing acannot replace with negative number!
error.Could I suggest swapping out the predicate for just a
(< 0 number)
?The text was updated successfully, but these errors were encountered: