Javascript float number
Posted: Mon Aug 06, 2007 3:54 am
I have a number for ex 12.678 and I would like to seperate the 12 from the whole number.
Any help gays?
Thanks in advance,
Aetoc
Any help gays?
Thanks in advance,
Aetoc
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
function noDecimals(){
var get_rid_of_decimals = theNumber.split(".");
return get_rid_of_decimals[0];
}