What does %% mean in java?

I am a PHP programmer and wonder what this line means.

System.out.printf("exp(%.3f) is %.3f%n", x, Math.exp(x))

what% .3f,%. 3f% n and the comma x means?

+3
source share
6 answers

PHP has a similar function: http://php.net/printf Java version documentation can be found here: http://java.sun.com/javase/6/docs/api/java/util/Formatter.html

+2
source

% - , .

x Math.exp(x) .

, , , PHP-, PHP printf .

+1

%. 3f Java, C/++. .

+1

printf. "%" " ", , % .

+1

, , %n printf...

+1

Source: https://habr.com/ru/post/1727808/


All Articles