← Docs
kotlin-stdlib / kotlin / Int / ushr

ushr

Common
JVM
JS
Native
1.0
infix fun ushr ( bitCount : Int ) : Int
(Common source) (Native source)

Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.

Note that only the five lowest-order bits of the bitCount are used as the shift distance. The shift distance actually used is therefore always in the range 0..31 .

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .