From: Peter Ertl Date: 2006-04-05T17:56:57+09:00 Subject: Re: [newbie] What means 1_000_000 it's just for readability! 1_000 is similar to 1000 > puts "x" * 20 xxxxxxxxxxxxxxxxxxxx it just duplicates a string multiple times (in this case 20) > --- Urspr�ngliche Nachricht --- > Von: EdUarDo > An: ruby-talk@ruby-lang.org (ruby-talk ML) > Betreff: [newbie] What means 1_000_000 > Datum: Wed, 5 Apr 2006 17:53:47 +0900 > > Hi all, > trying ri and reading documentation for Benchmark I've seen an example > that says: > > Benchmark.measure {"a"*1_000_000} > > What's that literall? I've tried to do it with 1000000 instead of > 1_000_000 and > it works too. > > And what means the expression "a"*1000000? What do that? >