what does the % % mean in java?

format-specifiers, java, printf

Solution

It is similar to C's `printf`:

http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax

Problem

Im a PHP-programmer and wonder what this line means. ``` System.out.printf("exp(%.3f) is %.3f%n", x, Math.exp(x)) ``` what does %.3f, %.3f%n and the comma x means?

Original source