Skip to content

Commit

Permalink
Complements example
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperancinha committed Oct 29, 2023
1 parent 2938fde commit edd297a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package org.jesperancinha.ktd
class FloatVsDouble {
companion object {
@JvmStatic
fun main(args: Array<String>) {
fun main(args: Array<String> = emptyArray()) {
val floatNumber = 7.3333333333333333333333333333333f
println(floatNumber)
println("The number $floatNumber has ${floatNumber.toString().length - 1} digits in precision")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class Main {
CupManager.main()
Patisserie.main()
WarehouseManager.main()
TailRec.main()
FloatVsDouble.main()
}
}
}

0 comments on commit edd297a

Please sign in to comment.