Created
September 3, 2020 00:12
-
-
Save mrnirva/ea675781e3dfaedc5c06da31099fcd88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ciktibicimleme; | |
public class CiktiBicimleme { | |
public static void main(String[] args) { | |
float hesabimdakiMiktar = 1450f; | |
System.out.printf("%,f\n" ,hesabimdakiMiktar); | |
// Sayıyı binliklere ayrır yalnız yanına 6 sıfır koyar | |
// 1,450.000000 | |
System.out.printf("%,.2f\n" ,hesabimdakiMiktar); | |
// Sayıyı binliklere ayırır 2 sıfır koyar | |
//1,450.00 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment