Sha256: 2d955862bf8e003966030c7decd3b4ceaa35e29a37cd7f6c386eb49530339e3d
Contents?: true
Size: 504 Bytes
Versions: 10
Compression:
Stored size: 504 Bytes
Contents
@function arithmetic($a,$b) { @return $a + $b, $a - $b, $a * $b, ($a - ($a % $b))/$b, $a % $b; } Which you use with: nth(arithmetic(10,3),1); Or each of the functions separately: @function sum($a,$b) { @return $a + $b; } @function difference($a,$b) { @return $a - $b; } @function product($a,$b) { @return $a * $b; } @function integer-division($a,$b) { @return ($a - ($a % $b))/$b; } @function remainder($a,$b) { @return $a % $b; } @function float-division($a,$b) { @return $a / $b; }
Version data entries
10 entries across 7 versions & 1 rubygems