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) > --- Ursprgliche Nachricht --- > Von: EdUarDo <eduardo.yanezNOSPAM / NOSPAMgmail.com> > 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? >