hi ! those two do not actually cast values, but read or 'parse' them, returning the alpha-numeric parts converted to either int (parseInt) or Number (parseFloat). Additionally parseInt lets you specify a radix to convert between decimal, hexadecimal, octal, or whatever number-systems. so for example : you have "123.45 $" (String) with parseInt : 123 (int) with parseFloat : 123.45 (Number) Le 19 janv. 2014 01:03, "jfb" <[email protected]> a écrit :
> For now in my calculations i am converting the field price to number using > Number(field). > I saw other functions parseFloat() and and parseInt(). > Anyone can explain the differences? > Thanks > > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/Issue-with-numbers-tp4492p4493.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. >
