Accuracy and return values from inputbox when default value is a length

Just as a prerequsite, go to the “Ideas” group from the pinned wikilist for Ruby Learning Resources, and read and study Thomas’ tutorial on units and the UI::inputbox() method.


And FYI, (besides Length#to_s(),) there are additional module methods in the API, to create unit formatted strings:

(Unless otherwise noted, methods available since v 6.0)