WoW:API GetCritChance: Difference between revisions

no edit summary
m (Added 1.10 fix to GameTooltip -- :SetOwner)
No edit summary
Line 33: Line 33:
:'''Note''': Sometimes, the percentage returned would include a '''lot''' of decimals, hence the usage of [http://www.lua.org/manual/5.0/manual.html#5.5 math.ceil()]] here to round up the number to the nearest decimal.
:'''Note''': Sometimes, the percentage returned would include a '''lot''' of decimals, hence the usage of [http://www.lua.org/manual/5.0/manual.html#5.5 math.ceil()]] here to round up the number to the nearest decimal.


== Exemples ==
== Examples ==
Simply call the function and display it, like this:
Simply call the function and display it, like this:
<!-- begin code -->
<!-- begin code -->
Anonymous user