WoW:API EditBox GetNumber: Difference between revisions

→‎Note: Added comment about checking for literal zero in text
No edit summary
(→‎Note: Added comment about checking for literal zero in text)
Line 25: Line 25:
* "14e6" => 14000000
* "14e6" => 14000000
* "21,000" => 21
* "21,000" => 21
== Note ==
To verify that a 0 returned is indeed the numerical value in the editbox field, convert the results of '''GetNumber()''' to a string using [[API tostring|tostring()]], and compare to the results of [[API EditBox GetText|GetText()]].