nemo7111
01-23-2004, 07:44 AM
Hi, there ...
Can anybody give me a code of how to create a number which is later used in mathematical operation?
I have these numbers:
1) 788 ( this is a constant )
2) xxxxxxxxxx ( this is a form value entered by client )
3) 889 ( constant )
I want the JS to join these 3 numbers into one:
788xxxxxxxxxx889
Through which command ca I achieve this?
I wrote this but it is wrong:
var fusion = 788 + "" + input_value + "" + 889;
I think I used wrong operator "+". It seems to mathematically add these three values creating completely
different number.
???????
Can anybody give me a code of how to create a number which is later used in mathematical operation?
I have these numbers:
1) 788 ( this is a constant )
2) xxxxxxxxxx ( this is a form value entered by client )
3) 889 ( constant )
I want the JS to join these 3 numbers into one:
788xxxxxxxxxx889
Through which command ca I achieve this?
I wrote this but it is wrong:
var fusion = 788 + "" + input_value + "" + 889;
I think I used wrong operator "+". It seems to mathematically add these three values creating completely
different number.
???????