[#409331] Capture HTML table data, pass to Ruby, pass back and display result in HTML text field — Hubert Wagner <lists@...>

Hello :

11 messages 2013/08/04

[#409336] Rakefile Error - Please Help — "Jennifer T." <lists@...>

Hi,

13 messages 2013/08/04
[#409341] Re: Rakefile Error - Please Help — Hassan Schroeder <hassan.schroeder@...> 2013/08/04

On Sun, Aug 4, 2013 at 7:41 AM, Jennifer T. <lists@ruby-forum.com> wrote:

Re: Why does the next() method behave this way?

From: Suicidal Penguin <lists@...>
Date: 2013-08-05 04:32:39 UTC
List: ruby-talk #409364
Think of it as mathematics:
z is 9
when you do z.next which is equivalent to 9+1 which results in 1 carry 
to the digit the the left.

So think of baz as 219
baz.next => 219+1 = 220
so in this case z will be incremented to a,
a will get the carry from z and increment to b.

Hope that helps.

-- 
Posted via http://www.ruby-forum.com/.

In This Thread