less / less.js

Less. The dynamic stylesheet language.
http://lesscss.org
Apache License 2.0
17k stars 3.41k forks source link

how can I use remainder(%) in less? #3684

Closed zjjjjjjjjjjd closed 2 years ago

zjjjjjjjjjjd commented 2 years ago

To reproduce:

@num: 10 % 6 // error

Current behavior:

error

Expected behavior:

right

Environment information:

iChenLei commented 2 years ago

use builtin mod function.

@num: mod(10, 6);