2.0.7 isn't from the master branch - it's the latest stable release, so it doesn't have behavior changes. You'll need to check Sass out from git to get the newest stuff.
On Sun, Feb 1, 2009 at 2:19 AM, Josh <[email protected]> wrote: > > I'm not sure if the complete research was published. At least I can't > find it now. I know Nate Koechley mentions it in the video at > http://developer.yahoo.com/yui/grids/. > > As for the division, perhaps I'm doing something wrong. I installed > the gem v2.0.7. I'm just running some simple experiments via RoR and > the command line right now. If I do something like (4 / 13) it > returns 0 in the rendered CSS. Flipping it so I'm only multiplying (4 > * 0.0769) gives the correct 0.3076 (although with rounding the > division should return 0.3077 strictly speaking). > > This is hardly worth much time or effort. Just figured I'd point it > out. Thanks for the quick response! > > Josh > > On Feb 1, 2:52 am, Nathan Weizenbaum <[email protected]> wrote: > > In the master branch, division operations will return floating-point > numbers > > and there's a Sass::Script::Number::PRECISION constant that cuts off the > > number of significant digits. Right now it's at 1000.0 (three significant > > digits), but if you link me to the YUI research, I'll change it to what > it > > suggests. > > > > - Nathan > > > > On Sun, Feb 1, 2009 at 12:41 AM, Joshua Hall <[email protected]> > wrote: > > > I've gotten into the habit of using em values as much as possible in my > > > CSS. I use the YUI base to setup my grids and such. > > > This means 1em = 13px in FF, Safari etc. However, for IE I need to > > > multiply my em values by 0.9759 to account for IEs odd definition of > em. I > > > can do all of this with the current math in SASS. > > > > > I'd like to be able to set my significant digits though. According to > some > > > of the YUI research, four decimal places are optimal. This is hardly a > huge > > > deal, but it would be nice to set that somewhere. > > > > > More importantly, I've noticed division operations floor the result. > > > Again, not huge because I can just flip all of my calculations to be > > > multiplication; however, it seemed like an odd feature. Shouldn't it > round > > > to an integer value (or floor the value) if the unit is px? However, > if the > > > unit is percent, em, etc. then keep the result a decimal. > > > > > Just my thoughts. Either way, this is a huge help and I plan on using > it > > > with my future projects. > > > -- > > > > > Joshua Hall | 402.321.4778 | surrealnotions.com > > > > > A computer terminal is not some clunky old television with a typewriter > in > > > front of it. It is an interface where the mind and body can connect > with the > > > universe and move bits of it about. > > > --Douglas Adams > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
