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

Reply via email to