Floating Point in Kotlin

Level 116 keystrokes

Prints a floating-point number to the console.

Kotlin code

// A literal with a decimal point is a Double by default
// println prints 3.14159
1println(3.14159)

Output

3.14159
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Kotlin code and how often they appear.

  • .× 1
  • (× 1
  • )× 1

More Kotlin examples at level 1

← Kotlin typing practice