-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00fbac0
commit ec89d84
Showing
7 changed files
with
46 additions
and
32 deletions.
There are no files selected for viewing
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
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
18 changes: 18 additions & 0 deletions
18
...ms/jeorg-kotlin-crums-1/src/main/kotlin/org/jesperancinha/ktd/crums1/NumbersConversion.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.jesperancinha.ktd.crums1 | ||
|
||
import java.math.RoundingMode | ||
import java.text.DecimalFormat | ||
|
||
private const val FORMAT_TEST_ONE = "#,###.##############" | ||
|
||
class NumbersConversion { | ||
|
||
companion object { | ||
@JvmStatic | ||
fun main(args: Array<String> = emptyArray()) { | ||
val decimalFormat = DecimalFormat(FORMAT_TEST_ONE) | ||
decimalFormat.setRoundingMode(RoundingMode.CEILING) | ||
println(decimalFormat.format("987654321".toDouble())) | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...jesperancinha/ktd/crums1/crum1/CrumOne.kt → ...erancinha/ktd/crums1/PrintToTheConsole.kt
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
8 changes: 0 additions & 8 deletions
8
...ms/jeorg-kotlin-crums-1/src/main/kotlin/org/jesperancinha/ktd/crums1/crum2/AuditResult.kt
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...jeorg-kotlin-crums-1/src/main/kotlin/org/jesperancinha/ktd/crums1/crum2/ComplianceType.kt
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...rums/jeorg-kotlin-crums-1/src/main/kotlin/org/jesperancinha/ktd/crums1/crum2/RoomClass.kt
This file was deleted.
Oops, something went wrong.