Changes
Jump to:
navigation
,
search
Understanding Ruby Variables
26 bytes added
,
21:08, 14 November 2007
→
Converting Variable Values
54321.to_s(16)
=> "d431"
54321.to_s(8)
=> "152061"
</pre>
In fact, we can use any number base between 1 and 36 when using the ''to_s'' method.
← Older edit
Newer edit →
Neil
Bureaucrat
,
administrator
34,333
edits
Navigation menu
Personal tools
Namespaces
Special page
Variants
Views
More
Search
Navigation
Home
Android
iOS / iPhone / iPad
Objective-C
PowerShell
Hyper-V
VMM 2008
VMware Server
Xen Virtualization
Windows Server 2008
Security+
Red Hat Linux
Linux eBooks
Ubuntu Linux
Fedora Linux
Fedora Desktop
OpenSUSE Desktop
C#
Visual Basic
MySQL
PHP
JavaScript
Ruby
Ad Blocking Survival
Windows
Networking
Web Development
Feedback
Answertopia.com
Linuxtopia.org
Virtuatopia.com
eBook Store
iOS 17 App
Development
Essentials
eBook
$32.99