These are the few functions used for converting non-numeric values into numbers in Javascript Number(x),parseInt(x, 10),parseFloat(x).
Write a C logic that stores 3 numeric values ranges 0 to 9 digits into 10 bits....eg 999 to fit into 10 bits