1

In sass I am doing this:

#myid
  width: (500 / 960) /*also need to convert it to % 
                     (* 100%) but that works fine*/
}

And the result that I am getting is:

#myid{
  width: 0.521;
}

Now on the 'responsive web design' book it states that we should not shorten the result. So what I needed is

  #myid{
      width: 0.52083333333333;
    }

So is there a way to get the full result in this case, with sass?

aurel
  • 3,082
  • 10
  • 44
  • 56
  • Is this what you're looking for -> http://stackoverflow.com/questions/10369643/rounding-in-sass ? – João Paulo Macedo Jun 08 '12 at 13:17
  • @JOPLOmacedo thanks that's what I need, do you know how I can accomplish this with CodeKit? as I could not set sass and compass using the terminal. – aurel Jun 08 '12 at 18:08

1 Answers1

0

Add this near the end of your config.rb:

Sass::Script::Number.precision = 13
bookcasey
  • 39,223
  • 13
  • 77
  • 94