Skip to content

Commit

Permalink
Simplify test for SI prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ruricolist committed Jul 22, 2024
1 parent df14127 commit 829a15f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions units.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@

(defconst si-prefixes-base-1000
(loop for (pow long short) in si-prefixes
unless (and (not (zerop pow))
(< (abs pow) 3))
unless (< 0 (abs pow) 3)
collect (list (truncate pow 3) long short))
"The SI prefixes as powers of 1000, with centi, deci, deca and hecto omitted.")

Expand Down

0 comments on commit 829a15f

Please sign in to comment.