%T#13951 Comment added by Bilgus: Troubles with lua tonumber() function

Rockbox via rockbox-sf <[email protected]> Fri, 10 Jul 2026 03:14:18 +0000
Newsgroups gmane.comp.systems.archos.rockbox.sourceforge
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#13951 - Troubles with lua tonumber() function
User who did this - Willliam W (Bilgus)

----------
Looked into this

turns out gsub actually returns multiple results

try this:
--Works
test = ("123.456"):gsub("%.", "")
rb.splash(50, tonumber(test))

--Works
test = "123.457"
local val = test:gsub("%.", "")
rb.splash(500, tonumber(val))
----------

More information can be found at the following URL:
https://www.rockbox.org/tracker/task/13951#comment45622

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
-- 
rockbox-sf mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-sf