User Tools

Site Tools


java:io:printstream:format

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java:io:printstream:format [2013/04/15 09:04]
88.75.134.113
java:io:printstream:format [2024/02/16 01:12] (current)
Line 2: Line 2:
 ====== format ====== ====== format ======
 format args to the format string format and write the result to the stream format args to the format string format and write the result to the stream
 +<code java>
 +format(String format, Object... args);
 +
 +return value: stream
 +</code>
 +
 ^ sign ^ Description  ^ ^ sign ^ Description  ^
-|0 |represents a digit – if the place is not busy they prints a 0 | +|0 |if the place is not busy they prints a 0 | 
-|# |represents a digit – if the place is not busy they prints nothing |+|# |if the place is not busy they prints nothing |
 |. |decimal separator Separates and decimal places. | |. |decimal separator Separates and decimal places. |
 |, |Groups the numbers (a group is as large as the distance from "," to "."). | |, |Groups the numbers (a group is as large as the distance from "," to "."). |
Line 10: Line 16:
 |- |The default character for the negative prefix | |- |The default character for the negative prefix |
 |% |The number is multiplied by 100 and reported as a percentage. | |% |The number is multiplied by 100 and reported as a percentage. |
-|%% |Just like%, with only thousandths. |+|% %  (without the space )|Just like %, with only thousandths. |
 |\uXXXX |unicode XXXX stands for Numbers and chars like \u20B3 | |\uXXXX |unicode XXXX stands for Numbers and chars like \u20B3 |
 |' |Masking of special symbols in the prefix or suffix | |' |Masking of special symbols in the prefix or suffix |
Line 23: Line 29:
 |%f |Float | |%f |Float |
 |%e |scientific notation | |%e |scientific notation |
-<code java> 
-format(String format, Object... args); 
  
-return value: stream 
-</code> 
  
 ===== Language Example ===== ===== Language Example =====

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
java/io/printstream/format.1366009492.txt · Last modified: 2024/02/16 01:11 (external edit)

Impressum Datenschutz