Maths & Flash
Maths & Flash
- Started
- Last post
- 7 Responses
- Fher
Hallo Pals,
Todays quiz: Does anybody knows how to set a variable in order that in a dynamic text field it is displayed with comas ie. "20.000" instead of 20000 ?
- quik0
RTFM.
just some basic string manipulation I guess.
make it check the length of the string, and slice in a comma where required.
:)
- fues0
Are you trying to display only integers?
- ********0
Math.splitThousands = function(n, seperator){
$tmp = n.toString();
$nl = $tmp.length;
$iP = ($nl%3)-1;
$return = "";
for(i=0;i
- ********0
oh, it didn't show the whole function
get my function in an fla from
http://nt.pixelbreaker.com/thous…
- majman0
pixelbreaker, i've always been a fan of your site. just wanted to take this opportunity to say:
nice work!
- ********0
Thanks!
- fugged0
yah. nice man. that nav is ultra tough =)