/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
				float floatValue = 12.34567f;
	    String str= String.format("%.4f", floatValue);
	    // remove the dot or minus
	    str = str.replaceAll("[-|.]", "");
	    int [] nums  = new int[str.length()];
	    for (int i=0; i<str.length(); i++) {
	      nums [i] = str.charAt(i)-'0';
	      System.out.println("nums["+ i + "] = " + nums[i]);
	    }
	}
}