java.lang.NumberFormatException: For input string: "0.5" code example Example: java.lang.NumberFormatException: For input string: "0.01"" Long.valueOf("0.01"");