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?
It is similar to C printf:
printf
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax
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
% - , .
%
x Math.exp(x) .
x
Math.exp(x)
, , , PHP-, PHP printf .
%. 3f Java, C/++. .
printf. "%" " ", , % .
, , %n printf...
%n
Source: https://habr.com/ru/post/1727808/More articles:Net :: SCP / Net :: SCP :: Expect - how to deal with password and key verification - perlHow to index a table with a slowly changing type 2 size for optimal performance - sqlHow to name a column in a database table that contains a version number - database-designHow can I change the opacity of the control? - c #Телефон разработчика Google - androidHow to learn how to disable ActiveMQ using NMS and C # - activemqWCF 3.5 REST endpoints invoke related asynchronously related methods? - c #IPhone Application Examples - objective-chttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1727812/adding-sizzle-js-to-my-project-breaks-the-project&usg=ALkJrhgeXvJQ0LUtEx8EBzvT9S-zlqvIuAAny reason I get the extra interval below IE6-7? - htmlAll Articles