var number = 132943154134; // convert number to a string,then extract the first digit var one = String(number).charAt(0); // convert the first digit back to an integer var one_as_number = Number(one);