Jump to content

Alpha


waves

Recommended Posts

Posted

Would it be possible to modify the dgs/guiSetAlpha function to produce exactly the Alpha number? If I set alpha to 0.5, I get 0.50000989.The problem is solved by operatoms of course but it would be good to fix it.spacer.png

Posted

It is possible to modify the dgs/guiSetAlpha to produce an exact alpha value instead of the slightly imprecise value you are seeing, but doing so may have unintended consequences and require thorough testing...

The issue is due to how computers store floating point numbers, which can result in small rounding errors.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...