Right you are. What I meant to say is the comma denotes 2 separate statements, and toInt() is called on the last value.
This fiddle should show what I mean: http://jsfiddle.net/sixtyseconds/jaxq7/ On Wednesday, March 14, 2012 7:56:30 AM UTC+2, Steve Onnis wrote: > > toInt() has no arguments being passed into it. > > > > Just like if you went (123.456789).toString() > > > > You wouldn’t be able to do 123.456789.toString() > > > > You encapsulate the value with brackets so you can call the method on the > value > > > > *From:* verylastminute [mailto:[email protected]] > *Sent:* Wednesday, 14 March 2012 4:52 PM > *To:* [email protected] > *Subject:* [Moo] Re: toInt() and 96.240,00 € > > > > The comma seperates arguments in a function call. You are calling toInt > with 2 arguments. > > On Tuesday, March 13, 2012 9:47:59 PM UTC+2, hamburger wrote: > > hello. > is there a way to get with .toInt() the right price in € ? > > (96.240,00).toInt(); // return 96 > > thanks for any hint > > > On Tuesday, March 13, 2012 9:47:59 PM UTC+2, hamburger wrote: > > hello. > is there a way to get with .toInt() the right price in € ? > > (96.240,00).toInt(); // return 96 > > thanks for any hint >
