I just tested your code. getValue () actually returns the index of the selected item (only when you set the displayed values). All you have to do is parse the string and you will have what you wanted.
String[] nums = {"1","1.5","2","2.5","3","3.5","4","4.5","5","5.5","6","6.5","7","7.5","8","8.5","9"}; int index = listeningScorenp.getValue(); String val = nums[index]; float selectedFloat = Float.parseFloat(val);
Randy
source share