Hi Mojito,

it seems to be a problem on float and it's accuracy.
If the resulted value must be exactly defined (0.3 and not
0.300000004), then you should do a small calculation to set it to the
correct value :
value = parseInt(value*100,10) / 100

--
david


On 1 sep, 22:51, Mojito <tokyot...@gmail.com> wrote:
> I did an Effect.Fade() on an element to opacity 0.3.  Then I check
> that element's opacity with $('element').getOpacity().  It returns 0.3
> in Firefox, but returns 0.300000000004 in IE8.  My application kind of
> depends on a predictable value.  Is this a problem with IE's JS engine
> or is this a known Prototype issue?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to