问题
I am trying to use sass + compass to make a fluid grid and I need my %'s to have at least 8 digits when compute them out but right now sass + compass is rounding my decimals to 3-digits. I found that if use --precision
you can tell sass to round to how ever many digits you want, my issue is that i can seem to figure out how to get --precision
to work from the terminal on my project. Please help
回答1:
According to this answer, configuring @precision in SASS's numbers.rb will achieve this result. It appears that --precision is nonfunctional.
回答2:
sass --precision 6 input.scss output.css
Reference: https://stackoverflow.com/a/10369785
来源:https://stackoverflow.com/questions/10374438/how-to-use-sass-precision