Why do I get this error?
Code:
Exception in thread "main" java.util.UnknownFormatConversionException: Conversio n = '5' at java.util.Formatter.checkText (Formatter.java:2502) at java.util.Formatter.parse(Formatter.java:2484) at java.util.Formatter.format(Formatter.java:2413) at java.io.PrintStream.format(PrintStream.java:920) at java.io.PrintStream.printf(PrintStream.java:821) at Maclaurin1.main(Maclaurin1.java:55) Press any key to continue . . .
All I want to do is convert a number from degrees to radians (Math.toRadians())and find the Math.sin and Math.cos of it