4

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

Hauleth
  • 22,873
  • 4
  • 61
  • 112
Lawrence
  • 837
  • 3
  • 12
  • 26
  • check this article out: http://heygrady.com/blog/2012/04/20/compass-grid-gem-and-new-fluid-grid/ – Jason Apr 29 '12 at 17:55
  • really dosent tlk about adjusting rounding in compass or sass, i need a way to change the rounding, which --precision ishould do but i just cant get it to work – Lawrence Apr 29 '12 at 21:52

2 Answers2

5

According to this answer, configuring @precision in SASS's numbers.rb will achieve this result. It appears that --precision is nonfunctional.

Community
  • 1
  • 1
Justin Maxwell
  • 439
  • 3
  • 13
2
sass --precision 6 input.scss output.css

Reference: https://stackoverflow.com/a/10369785

Community
  • 1
  • 1
FDisk
  • 8,493
  • 2
  • 47
  • 52